Versions in this module Expand all Collapse all v0 v0.0.2 Sep 10, 2020 Changes in this version + func LogLevelToString(level LogLevel) string + type ILogger interface + AddLogChain func(logger ILogger) + AddSkipLevel func() + Debug func(format string, args ...interface{}) + Error func(format string, args ...interface{}) + Fatal func(format string, args ...interface{}) + HitLevel func(level LogLevel) bool + Info func(format string, args ...interface{}) + Notice func(format string, args ...interface{}) + Panic func(format string, args ...interface{}) + Trace func(format string, args ...interface{}) + Warn func(format string, args ...interface{}) + func NewConsoleLogger(level LogLevel, skip int) (ILogger, error) + func NewFileLogger(path, prefix string, level LogLevel, skip int) (ILogger, error) + func NewWriterLogger(w io.Writer, level LogLevel, skip int) (ILogger, error) + type LogLevel int + const LogLevelDebug + const LogLevelError + const LogLevelFatal + const LogLevelInfo + const LogLevelInvalid + const LogLevelNone + const LogLevelNotice + const LogLevelPanic + const LogLevelTrace + const LogLevelWarn + func StringToLogLevel(level string) LogLevel + type Logger struct + func (l *Logger) AddLogChain(next ILogger) + func (l *Logger) AddSkipLevel() + func (l *Logger) Debug(format string, args ...interface{}) + func (l *Logger) Error(format string, args ...interface{}) + func (l *Logger) Fatal(format string, args ...interface{}) + func (l *Logger) HitLevel(level LogLevel) bool + func (l *Logger) Info(format string, args ...interface{}) + func (l *Logger) Notice(format string, args ...interface{}) + func (l *Logger) Panic(format string, args ...interface{}) + func (l *Logger) Trace(format string, args ...interface{}) + func (l *Logger) Warn(format string, args ...interface{})