Documentation ¶
Index ¶
- Constants
- Variables
- func Start()
- func Stop()
- type Level
- type Log
- type Logger
- func (l *Logger) Debug(msg string, kv ...interface{})
- func (l *Logger) Error(msg string, kv ...interface{})
- func (l *Logger) Fatal(msg string, kv ...interface{})
- func (l *Logger) ID() string
- func (l *Logger) Info(msg string, kv ...interface{})
- func (l *Logger) Label() string
- func (l *Logger) Level() string
- func (l *Logger) Log(level Level, msg string, kv ...interface{})
- func (l *Logger) Name() string
- func (l *Logger) NewLogger(id, name string) (*Logger, error)
- func (l *Logger) NewStdLogger(level, prefix string, flag int) *log.Logger
- func (l *Logger) Notice(msg string, kv ...interface{})
- func (l *Logger) SetLevel(level string)
- func (l *Logger) Trace(msg string, kv ...interface{})
- func (l *Logger) Unregister()
- func (l *Logger) Warning(msg string, kv ...interface{})
- type Output
Constants ¶
View Source
const ( LevelTrace = iota + 1 LevelDebug LevelInfo LevelNotice LevelWarning LevelError LevelFatal )
Variables ¶
View Source
var BufPool = buffer.NewPool(_bufSize)
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) NewStdLogger ¶
func (*Logger) Unregister ¶
func (l *Logger) Unregister()
Click to show internal directories.
Click to hide internal directories.