Documentation ¶
Index ¶
- func LogLevelToString(level LogLevel) string
- type ILogger
- type LogLevel
- type Logger
- 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{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ILogger ¶
type ILogger interface { HitLevel(level LogLevel) bool Trace(format string, args ...interface{}) Debug(format string, args ...interface{}) Info(format string, args ...interface{}) Notice(format string, args ...interface{}) Warn(format string, args ...interface{}) Error(format string, args ...interface{}) Panic(format string, args ...interface{}) Fatal(format string, args ...interface{}) AddLogChain(logger ILogger) AddSkipLevel() }
func NewFileLogger ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.