Documentation ¶
Index ¶
- type Logger
- type Logrus
- func (l *Logrus) Debug(msg string, keyValues ...interface{})
- func (l *Logrus) Error(msg string, keyValues ...interface{})
- func (l *Logrus) Fatal(msg string, keyValues ...interface{})
- func (l *Logrus) Info(msg string, keyValues ...interface{})
- func (l *Logrus) Module(ns string) Logger
- func (l *Logrus) SetToDebug()
- func (l *Logrus) SetToError()
- func (l *Logrus) SetToInfo()
- func (l *Logrus) Warn(msg string, keyValues ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { SetToDebug() SetToInfo() SetToError() Module(ns string) Logger Debug(msg string, keyValues ...interface{}) Info(msg string, keyValues ...interface{}) Error(msg string, keyValues ...interface{}) Fatal(msg string, keyValues ...interface{}) Warn(msg string, keyValues ...interface{}) }
Logger represents an interface for a logger
func NewLogrusNoOp ¶
func NewLogrusNoOp() Logger
NewLogrusNoOp creates a logrus backed logger that logs nothing
func NewLogrusWithFileRotation ¶
NewLogrusWithFileRotation creates a logger with file backend and file rotation enabled. Two log file are created: - filePath.out stores DEBUG and INFO - filePath.err stores ERROR
type Logrus ¶
type Logrus struct {
// contains filtered or unexported fields
}
Logrus implements Logger
Click to show internal directories.
Click to hide internal directories.