Documentation ¶
Overview ¶
Package logger implements a standardized logger with callback functionality
Index ¶
- Variables
- type LogLevel
- type Logger
- func (l *Logger) AddHandler(level LogLevel, h MessageHandler)
- func (l *Logger) Debugf(format string, vals ...interface{})
- func (l *Logger) Debugln(vals ...interface{})
- func (l *Logger) FatalErr(err error)
- func (l *Logger) Fatalf(format string, vals ...interface{})
- func (l *Logger) Fatalln(vals ...interface{})
- func (l *Logger) Infof(format string, vals ...interface{})
- func (l *Logger) Infoln(vals ...interface{})
- func (l *Logger) Okf(format string, vals ...interface{})
- func (l *Logger) Okln(vals ...interface{})
- func (l *Logger) SetFlags(flag int)
- func (l *Logger) SetPrefix(prefix string)
- func (l *Logger) Warnf(format string, vals ...interface{})
- func (l *Logger) Warnln(vals ...interface{})
- type MessageHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLogger = New()
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) AddHandler ¶
func (l *Logger) AddHandler(level LogLevel, h MessageHandler)
type MessageHandler ¶
Click to show internal directories.
Click to hide internal directories.