Documentation ¶
Index ¶
- Constants
- type Helper
- func (h *Helper) Debug(a ...interface{})
- func (h *Helper) Debugf(format string, a ...interface{})
- func (h *Helper) Debugw(kvpair ...interface{})
- func (h *Helper) Error(a ...interface{})
- func (h *Helper) Errorf(format string, a ...interface{})
- func (h *Helper) Errorw(kvpair ...interface{})
- func (h *Helper) Info(a ...interface{})
- func (h *Helper) Infof(format string, a ...interface{})
- func (h *Helper) Infow(kvpair ...interface{})
- func (h *Helper) Warn(a ...interface{})
- func (h *Helper) Warnf(format string, a ...interface{})
- func (h *Helper) Warnw(kvpair ...interface{})
- type Level
- type Logger
Constants ¶
View Source
const (
// LevelKey is logger level key.
LevelKey = "level"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Helper ¶
type Helper struct {
// contains filtered or unexported fields
}
Helper is a logger helper.
func (*Helper) Debug ¶
func (h *Helper) Debug(a ...interface{})
Debug logs a message at debug level.
func (*Helper) Debugw ¶
func (h *Helper) Debugw(kvpair ...interface{})
Debugw logs a message at debug level.
func (*Helper) Error ¶
func (h *Helper) Error(a ...interface{})
Error logs a message at error level.
func (*Helper) Errorw ¶
func (h *Helper) Errorw(kvpair ...interface{})
Errorw logs a message at error level.
func (*Helper) Infow ¶
func (h *Helper) Infow(kvpair ...interface{})
Infow logs a message at info level.
type Level ¶
type Level int8
Level is a logger level.
type Logger ¶
type Logger interface {
Print(pairs ...interface{})
}
Logger is a logger interface.
var ( // DefaultLogger is default logger. DefaultLogger Logger = NewStdLogger() )
Click to show internal directories.
Click to hide internal directories.