Documentation ¶
Index ¶
- func DPanic(msg string, options map[string]interface{})
- func Debug(msg string, options map[string]interface{})
- func Error(msg string, options map[string]interface{})
- func Fatal(msg string, options map[string]interface{})
- func Info(msg string, options map[string]interface{})
- func InitLogger()
- func LogCompress(b bool)
- func LogLevel(lvl string)
- func LogSugar() *zap.SugaredLogger
- func MaxAge(n int)
- func MaxSize(n int)
- func Panic(msg string, options map[string]interface{})
- func Recover()
- func SetLogDir(dir string)
- func SetLogFile(fileName string)
- func Stack() []byte
- func Warn(msg string, options map[string]interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
func InitLogger()
func LogCompress ¶
func LogCompress(b bool)
func LogSugar ¶
func LogSugar() *zap.SugaredLogger
sugar语法糖,支持简单的msg信息打印 支持Debug,Info,Error,Panic,Warn,Fatal等方法
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.