Documentation ¶
Index ¶
- Constants
- Variables
- func Caller(depth int) string
- type Helper
- func (h *Helper) Debug(v ...interface{})
- func (h *Helper) Debugf(format string, v ...interface{})
- func (h *Helper) Error(v ...interface{})
- func (h *Helper) Errorf(format string, v ...interface{})
- func (h *Helper) Fatal(v ...interface{})
- func (h *Helper) Fatalf(format string, v ...interface{})
- func (h *Helper) Info(v ...interface{})
- func (h *Helper) Infof(format string, v ...interface{})
- func (h *Helper) Log(level Level, v ...interface{})
- func (h *Helper) Warn(v ...interface{})
- func (h *Helper) Warnf(format string, v ...interface{})
- type Level
- type Logger
- type StdOption
Constants ¶
View Source
const ( Debug = iota + 1 Info Warn Error Fatal )
View Source
const ( TimeLayOutSlashHIS = "2006/01/02 15:04:05" TimeLayOutCrossbarHIS = "2006-01-02 15:04:05" )
Variables ¶
View Source
var DefaultLogger = NewStdLogger(log.Writer())
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.