Documentation ¶
Index ¶
- Constants
- func AddOutput(w io.Writer)
- func Debug(s string) error
- func Debugf(format string, v ...interface{}) error
- func EnableAnsiColor(enable bool)
- func Error(s string) error
- func Errorf(format string, v ...interface{}) error
- func Fatal(s string)
- func Fatalf(format string, v ...interface{})
- func Info(s string) error
- func Infof(format string, v ...interface{}) error
- func New() *logger
- func NewLogger() *logger
- func SetLogLevel(level Level)
- func SetOutput(w io.Writer)
- func SetPrefix(prefix string)
- func Warn(s string) error
- func Warnf(format string, v ...interface{}) error
- type Level
Constants ¶
View Source
const ( LevelFatal = iota LevelError LevelWarning LevelInfo LevelDebug )
Variables ¶
This section is empty.
Functions ¶
func EnableAnsiColor ¶
func EnableAnsiColor(enable bool)
func SetLogLevel ¶
func SetLogLevel(level Level)
Types ¶
Click to show internal directories.
Click to hide internal directories.