Documentation ¶
Index ¶
- Constants
- type Logger
- func (l *Logger) Debug(msg string, v ...interface{})
- func (l *Logger) Error(msg string, v ...interface{})
- func (l *Logger) Fatal(msg string, v ...interface{})
- func (l *Logger) Info(msg string, v ...interface{})
- func (l *Logger) LogAndRaiseError(msg string, v ...interface{}) error
- func (l *Logger) SetSTDError(w io.Writer)
- func (l *Logger) SetSTDOutput(w io.Writer)
- func (l *Logger) Warning(msg string, v ...interface{})
Constants ¶
View Source
const ( // FatalLevel only FatalLevel = iota // ErrorLevel and below ErrorLevel // WarningLevel and below WarningLevel // DebugLevel and below DebugLevel // InfoLevel is all events InfoLevel )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger provides logging functionality
func (*Logger) LogAndRaiseError ¶
LogAndRaiseError logs error event and raises error
func (*Logger) SetSTDError ¶
SetSTDError provides realtime changing of output writer for stderr
func (*Logger) SetSTDOutput ¶
SetSTDOutput provides realtime changing of output writer for stdout
Click to show internal directories.
Click to hide internal directories.