Documentation ¶
Index ¶
- Constants
- func SetLevel(lv level)
- func SetOutput(w io.Writer)
- type Logger
- func (l Logger) Debug(a interface{})
- func (l Logger) Debugf(format string, a ...interface{})
- func (l Logger) Error(a interface{})
- func (l Logger) Errorf(format string, a ...interface{})
- func (l Logger) Fatal(a interface{})
- func (l Logger) Fatalf(format string, a ...interface{})
- func (l Logger) Info(a interface{})
- func (l Logger) Infof(format string, a ...interface{})
- func (l Logger) Warn(a interface{})
- func (l Logger) Warnf(format string, a ...interface{})
Constants ¶
View Source
const ( DEBUG level = iota INFO WARN ERROR FATAL NONE )
These are the different logging levels
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger represents a logger
func (Logger) Fatal ¶
func (l Logger) Fatal(a interface{})
Fatal logs a message at level Fatal and panic program
Click to show internal directories.
Click to hide internal directories.