Documentation ¶
Index ¶
- Variables
- func InitializeLogging(comp string)
- type FilteredLogger
- func (l FilteredLogger) Critical(msg string)
- func (l FilteredLogger) Criticalf(msg string, args ...interface{})
- func (l FilteredLogger) Error(msg string)
- func (l FilteredLogger) Errorf(msg string, args ...interface{})
- func (l FilteredLogger) Info(msg string)
- func (l FilteredLogger) Infof(msg string, args ...interface{})
- func (l FilteredLogger) Level(level LogLevel) *FilteredLogger
- func (l FilteredLogger) Log(params ...interface{}) error
- func (l *FilteredLogger) SetLogLevel(filterLevel LogLevel) error
- func (l *FilteredLogger) SetLogger(logger log.Logger) *FilteredLogger
- func (l *FilteredLogger) SetVerbosityLevel(level int) error
- func (l FilteredLogger) V(level int) *FilteredLogger
- func (l FilteredLogger) Warning(msg string)
- func (l FilteredLogger) Warningf(msg string, args ...interface{})
- func (l *FilteredLogger) With(obj ...interface{}) *FilteredLogger
- func (l *FilteredLogger) WithPrefix(obj ...interface{}) *FilteredLogger
- type LogError
- type LogLevel
Constants ¶
This section is empty.
Variables ¶
View Source
var Log = DefaultLogger()
Functions ¶
func InitializeLogging ¶
func InitializeLogging(comp string)
Types ¶
type FilteredLogger ¶
type FilteredLogger struct {
// contains filtered or unexported fields
}
func DefaultLogger ¶
func DefaultLogger() *FilteredLogger
func Logger ¶
func Logger(component string) *FilteredLogger
func MakeLogger ¶
func MakeLogger(logger log.Logger) *FilteredLogger
Wrap a go-kit logger in a FilteredLogger. Not cached
func (FilteredLogger) Critical ¶
func (l FilteredLogger) Critical(msg string)
func (FilteredLogger) Criticalf ¶
func (l FilteredLogger) Criticalf(msg string, args ...interface{})
func (FilteredLogger) Error ¶
func (l FilteredLogger) Error(msg string)
func (FilteredLogger) Errorf ¶
func (l FilteredLogger) Errorf(msg string, args ...interface{})
func (FilteredLogger) Info ¶
func (l FilteredLogger) Info(msg string)
func (FilteredLogger) Infof ¶
func (l FilteredLogger) Infof(msg string, args ...interface{})
func (FilteredLogger) Level ¶
func (l FilteredLogger) Level(level LogLevel) *FilteredLogger
func (FilteredLogger) Log ¶
func (l FilteredLogger) Log(params ...interface{}) error
func (*FilteredLogger) SetLogLevel ¶
func (l *FilteredLogger) SetLogLevel(filterLevel LogLevel) error
func (*FilteredLogger) SetLogger ¶
func (l *FilteredLogger) SetLogger(logger log.Logger) *FilteredLogger
func (*FilteredLogger) SetVerbosityLevel ¶
func (l *FilteredLogger) SetVerbosityLevel(level int) error
func (FilteredLogger) V ¶
func (l FilteredLogger) V(level int) *FilteredLogger
It would be consistent to return an error from this function, but a multi-value function would break the primary use case: log.V(2).Info()....
func (FilteredLogger) Warning ¶
func (l FilteredLogger) Warning(msg string)
func (FilteredLogger) Warningf ¶
func (l FilteredLogger) Warningf(msg string, args ...interface{})
func (*FilteredLogger) With ¶
func (l *FilteredLogger) With(obj ...interface{}) *FilteredLogger
func (*FilteredLogger) WithPrefix ¶
func (l *FilteredLogger) WithPrefix(obj ...interface{}) *FilteredLogger
Click to show internal directories.
Click to hide internal directories.