Documentation ¶
Overview ¶
Package mplog log User: 姜伟 Time: 2020-02-19 04:52:43
Index ¶
- Constants
- func Load(conf *viper.Viper, fields map[string]interface{}, ...)
- func LogDPanic(msg string, fields ...LogField)
- func LogDebug(msg string, fields ...LogField)
- func LogError(msg string, fields ...LogField)
- func LogFatal(msg string, fields ...LogField)
- func LogInfo(msg string, fields ...LogField)
- func LogPanic(msg string, fields ...LogField)
- func LogWarn(msg string, fields ...LogField)
- type LogField
Constants ¶
View Source
const ( // LogTypeDebug Debug LogTypeDebug = 1 // LogTypeWarn Warn LogTypeWarn = 2 // LogTypeInfo Info LogTypeInfo = 3 // LogTypeError Error LogTypeError = 4 // LogTypeDPanic DPanic LogTypeDPanic = 5 // LogTypePanic Panic LogTypePanic = 6 // LogTypeFatal Fatal LogTypeFatal = 7 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.