Documentation ¶
Index ¶
Constants ¶
View Source
const TimeFormat = "2006-01-02 15:04:05.999"
Variables ¶
View Source
var ( NewContext = logr.NewContext FromContextOrDiscard = logr.FromContextOrDiscard )
View Source
var ( Info = Logger.Info Error = Logger.Error V = Logger.V Warn = Logger.V(1) Debug = Logger.V(2) Trace = Logger.V(3) )
View Source
var AtomicLevel = zap.NewAtomicLevelAt(zap.InfoLevel) // 通过更改 level 可一更改runtime logger的level
View Source
var _, Logger = MustNewLogger()
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.