Documentation
¶
Index ¶
- Constants
- func Colored(color string, text string) string
- func Disable()
- func Enable()
- func SetColored(b bool)
- func SetLevel(l int)
- func SetWriter(writer io.Writer)
- type Logger
- func (logger *Logger) Debug(a ...interface{}) error
- func (logger *Logger) Debugf(format string, a ...interface{}) error
- func (logger *Logger) Error(a ...interface{}) error
- func (logger *Logger) Errorf(format string, a ...interface{}) error
- func (logger *Logger) Fatal(a ...interface{})
- func (logger *Logger) Fatalf(format string, a ...interface{})
- func (logger *Logger) Info(a ...interface{}) error
- func (logger *Logger) Infof(format string, a ...interface{}) error
- func (logger *Logger) Warn(a ...interface{}) error
- func (logger *Logger) Warnf(format string, a ...interface{}) error
Constants ¶
View Source
const ( DEBUG int = iota INFO WARN ERROR )
level
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.