Documentation ¶
Overview ¶
Package log provides internal logging infrastructure
Index ¶
- type Logger
- func (l *Logger) Debug(msg string)
- func (l *Logger) Debugf(format string, v ...interface{})
- func (l *Logger) Error(msg string)
- func (l *Logger) Errorf(format string, v ...interface{})
- func (l *Logger) Info(msg string)
- func (l *Logger) Infof(format string, v ...interface{})
- func (l *Logger) SetDebugLevel(debugLevel uint)
- func (l *Logger) Warn(msg string)
- func (l *Logger) Warnf(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger provides filtered and categorized logging API. It logs to standard logger, only errors by default
var Log Logger
func (*Logger) SetDebugLevel ¶
SetDebugLevel to filter log messages. Each level mean to log all categories bellow 0 errors , 1 - warning, 2 - info, 3 - debug
Click to show internal directories.
Click to hide internal directories.