Documentation ¶
Index ¶
- func Async(msgNum int64)
- func Close()
- func Critical(format string, v ...interface{})
- func Debug(format string, v ...interface{})
- func Debugln(v ...interface{})
- func Error(format string, v ...interface{})
- func Errorln(v ...interface{})
- func GetLogger() *ghLogs.BeeLogger
- func Info(format string, v ...interface{})
- func Infoln(v ...interface{})
- func Init(cfgFile string) *ghLogs.BeeLogger
- func Panicln(v ...interface{})
- func SetLogLv(lv int)
- func SetLogger(adapterName string, cfg *LogCfg)
- func SetLoggerByJson(adapterName, jsonCfg string)
- func Warn(format string, v ...interface{})
- func Warnln(v ...interface{})
- type LogCfg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLoggerByJson ¶
func SetLoggerByJson(adapterName, jsonCfg string)
Types ¶
type LogCfg ¶
type LogCfg struct { Filename string `json:"filename,omitempty"` MaxLines int `json:"maxlines,omitempty"` // Rotate at line MaxSize int `json:"maxsize,omitempty"` // Rotate at size Daily bool `json:"daily,omitempty"` // Rotate daily MaxDays int64 `json:"maxdays,omitempty"` Rotate bool `json:"rotate,omitempty"` Level int `json:"level,omitempty"` Perm string `json:"perm,omitempty"` }
Click to show internal directories.
Click to hide internal directories.