Versions in this module Expand all Collapse all v1 v1.0.0 Oct 5, 2019 Changes in this version + func FormatLogMsgToStr(logMsg *LogMsg) *string + func NewLogConfig() *_Config + func NewOutFile() *_FileOut + func NewOutStd() *_StdOut + type LogExitHook interface + ReceiveLogExit func(code int) + type LogLevel uint8 + const LevelDebug + const LevelError + const LevelFatal + const LevelInfo + const LevelTrace + const LevelWarn + func (logLevel LogLevel) Color() string + func (logLevel LogLevel) String() string + type LogMsg struct + Args []interface{} + Config *_Config + Format string + Level LogLevel + LineCode string + Time time.Time + type LogMsgHook interface + ReceiveLogMsg func(logMsg *LogMsg) error + type Logger interface + AddLogExitHook func(hook LogExitHook) + AddLogMsgHook func(hook LogMsgHook) + Debug func(format string, args ...interface{}) + Error func(format string, args ...interface{}) + Exit func(code int) + Fatal func(format string, args ...interface{}) + Info func(format string, args ...interface{}) + Trace func(format string, args ...interface{}) + Warn func(format string, args ...interface{}) + func GetLogger() Logger + func NewLog(config *_Config) Logger