Documentation
¶
Index ¶
- type Logger
- func (l *Logger) AutoClearFields(enabled bool)
- func (l *Logger) ClearFields()
- func (l *Logger) Debugf(msg string, args ...interface{})
- func (l *Logger) Errorf(msg string, args ...interface{})
- func (l *Logger) Fatalf(msg string, args ...interface{})
- func (l *Logger) Infof(msg string, args ...interface{})
- func (l *Logger) LogLevel() string
- func (l *Logger) Logf(level logrus.Level, msg string, args ...interface{})
- func (l *Logger) Logger() *logrus.Logger
- func (l *Logger) Panicf(msg string, args ...interface{})
- func (l *Logger) SetLevel(levelStr string)
- func (l *Logger) SetOutput(w io.Writer)
- func (l *Logger) Tracef(msg string, args ...interface{})
- func (l *Logger) Warningf(msg string, args ...interface{})
- func (l *Logger) WithError(err error) pkg.Logger
- func (l *Logger) WithField(k string, v interface{}) pkg.Logger
- func (l *Logger) WithFields(kv map[string]interface{}) pkg.Logger
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 Represents loggo logger and fields to support structured logging.
func (*Logger) AutoClearFields ¶
AutoClearFields if true , Will clear any field that is set using WithField(s) call after a log line is logged/printed.
func (*Logger) ClearFields ¶
func (l *Logger) ClearFields()
ClearFields Reset all fields set by WithField(s) method.
Click to show internal directories.
Click to hide internal directories.