Documentation ¶
Index ¶
- Constants
- Variables
- func Debugf(format string, a ...interface{})
- func Errorf(format string, a ...interface{})
- func Info(a ...interface{})
- func Infof(format string, a ...interface{})
- func SetLogger(logger Logger)
- type Helper
- func (h *Helper) Debug(a ...interface{})
- func (h *Helper) Debugf(format string, a ...interface{})
- func (h *Helper) Debugw(a ...interface{})
- func (h *Helper) Errorf(format string, a ...interface{})
- func (h *Helper) Info(a ...interface{})
- func (h *Helper) Infof(format string, a ...interface{})
- func (h *Helper) Infow(a ...interface{})
- type Level
- type Logger
- type Option
- type Valuer
Constants ¶
View Source
const LevelKey = "level"
Variables ¶
View Source
var ( DefaultTimestamp = TimeStamp(time.RFC3339) DefaultCaller = Caller(4) )
View Source
var DefaultLogger = NewStdLogger(log.Writer())
View Source
var DefaultMessageKey = "msg"
Functions ¶
Types ¶
type Logger ¶
func NewStdLogger ¶
Click to show internal directories.
Click to hide internal directories.