Documentation ¶
Index ¶
- type LogLevel
- type Logger
- func (log *Logger) Debug(format string, args ...interface{})
- func (log *Logger) Error(format string, args ...interface{})
- func (log *Logger) Fatal(format string, args ...interface{})
- func (log *Logger) Info(format string, args ...interface{})
- func (log *Logger) Panic(format string, args ...interface{})
- func (log *Logger) Print(format string, args ...interface{})
- func (log *Logger) SetColored(flag bool)
- func (log *Logger) Warn(format string, args ...interface{})
- func (log *Logger) Warning(format string, args ...interface{})
- type TextFormatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { LogLevel LogLevel Output io.Writer Formatter *TextFormatter // contains filtered or unexported fields }
func (*Logger) SetColored ¶
type TextFormatter ¶
type TextFormatter struct {
Colored bool
}
Click to show internal directories.
Click to hide internal directories.