Documentation ¶
Index ¶
- func Alert(a ...interface{})
- func AlertF(format string, v ...interface{})
- func Debug(a ...interface{})
- func DebugF(format string, v ...interface{})
- func Error(a ...interface{})
- func ErrorF(format string, v ...interface{})
- func Info(a ...interface{})
- func InfoF(format string, v ...interface{})
- func LoadConsole(cfg Config) (err *data.CodeError)
- func LoadFileLogger(cfg Config) (err *data.CodeError)
- func Prepare() *data.CodeError
- func Warning(a ...interface{})
- func WarningF(format string, v ...interface{})
- type Config
- type Level
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConsole ¶
func LoadFileLogger ¶
Types ¶
type Config ¶
type Level ¶
type Level = int
const ( LevelAlert Level = logs.LevelAlert LevelError Level = logs.LevelError LevelWarning Level = logs.LevelWarning LevelInfo Level = logs.LevelInformational LevelDebug Level = logs.LevelDebug LevelNone Level = 100000 // 不输出日志 )
Click to show internal directories.
Click to hide internal directories.