Documentation ¶
Index ¶
- Constants
- type Adapter
- func (a *Adapter) Debugf(fmt string, args ...interface{})
- func (a *Adapter) Errorf(fmt string, args ...interface{})
- func (a *Adapter) Fatalf(fmt string, args ...interface{})
- func (a *Adapter) Infof(fmt string, args ...interface{})
- func (a *Adapter) Printf(fmt string, args ...interface{})
- func (a *Adapter) SetLevel(level Level)
- func (a *Adapter) Warnf(fmt string, args ...interface{})
- func (a *Adapter) WithFields(fields Fields) Logger
- type Fields
- type Formatter
- type Level
- type Logger
Constants ¶
View Source
const ( DebugLevel = Level(logrus.DebugLevel) ErrorLevel = Level(logrus.ErrorLevel) InfoLevel = Level(logrus.InfoLevel) WarnLevel = Level(logrus.WarnLevel) FatalLevel = Level(logrus.FatalLevel) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
func (*Adapter) WithFields ¶
type Formatter ¶
A Formatter is a formatter that can be set on a logrus object to apply our formatting policies.
type Logger ¶
type Logger interface { Fatalf(string, ...interface{}) Errorf(string, ...interface{}) Infof(string, ...interface{}) Printf(string, ...interface{}) Warnf(string, ...interface{}) Debugf(string, ...interface{}) SetLevel(level Level) WithFields(fields Fields) Logger }
func DefaultLogger ¶
func DefaultLogger() Logger
Click to show internal directories.
Click to hide internal directories.