Documentation ¶
Index ¶
- Constants
- Variables
- func Value(v interface{}) interface{}
- type Level
- type Logger
- type Slf4g
- func (h *Slf4g) Critical(a ...interface{})
- func (h *Slf4g) CriticalF(format string, a ...interface{})
- func (h *Slf4g) CriticalW(pairs ...interface{})
- func (h *Slf4g) Debug(a ...interface{})
- func (h *Slf4g) DebugF(format string, a ...interface{})
- func (h *Slf4g) DebugW(pairs ...interface{})
- func (h *Slf4g) Error(a ...interface{})
- func (h *Slf4g) ErrorF(format string, a ...interface{})
- func (h *Slf4g) ErrorW(pairs ...interface{})
- func (h *Slf4g) Info(a ...interface{})
- func (h *Slf4g) InfoF(format string, a ...interface{})
- func (h *Slf4g) InfoW(pairs ...interface{})
- func (h *Slf4g) Warning(a ...interface{})
- func (h *Slf4g) WarningF(format string, a ...interface{})
- func (h *Slf4g) WarningW(pairs ...interface{})
- type Valuer
Constants ¶
View Source
const LevelKey = "level"
LevelKey 是记录器级别的键.
Variables ¶
View Source
var ( // DefaultCaller 是返回文件和行的评估器. DefaultCaller = Caller(3) // DefaultLogger 是默认记录器. DefaultLogger = NewStdLogger("[Titan] ", log.Writer()) // DefaultCallerLogger 是默认返回文件和行的评估器记录器. DefaultCallerLogger = With(DefaultLogger, "caller", DefaultCaller) // DefaultTimestamp 是一个返回当前时钟时间的评估器. DefaultTimestamp = Timestamp(time.RFC3339) )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.