Documentation ¶
Index ¶
- Constants
- func Debug(content ...interface{})
- func Error(content ...interface{})
- func Fatal(content ...interface{})
- func Info(content ...interface{})
- func SetDefaultLogger(logger *Logger)
- func Warn(content ...interface{})
- type Logger
- func (logger *Logger) Debug(content ...interface{})
- func (logger *Logger) Error(content ...interface{})
- func (logger *Logger) Fatal(content ...interface{})
- func (logger *Logger) Info(content ...interface{})
- func (logger *Logger) Log(prefix string, content ...interface{})
- func (logger *Logger) LogColorful(prefix, colorCode string, content ...interface{})
- func (logger *Logger) LogTime()
- func (logger *Logger) Warn(content ...interface{})
Constants ¶
View Source
const ( DebugOn = 0x1 InfoOn = 0x3 WarnOn = 0x7 ErrorOn = 0xF FatalOn = 0x1F )
View Source
const ( ErrorLevel = ErrorOn | FatalOn WarnLevel = ErrorLevel | WarnOn InfoLevel = WarnLevel | InfoOn DebugLevel = InfoLevel | DebugOn )
Variables ¶
This section is empty.
Functions ¶
func SetDefaultLogger ¶
func SetDefaultLogger(logger *Logger)
Types ¶
Click to show internal directories.
Click to hide internal directories.