Documentation ¶
Overview ¶
Package logrus provides an adapter to the go-kit log.Logger interface.
Index ¶
- func NewLogger(callerDep int) logapi.Interface
- type Logger
- func (l Logger) Level() logapi.Level
- func (l Logger) Log(level logapi.Level, args ...interface{})
- func (l Logger) LogFf(level logapi.Level, fields logapi.Fields, format string, args ...interface{})
- func (l Logger) Logf(level logapi.Level, format string, args ...interface{})
- func (l Logger) SetLevel(lvl logapi.Level)
- func (l *Logger) SetLoggerOutputFileConfig(conf logapi.LoggerOutputFileConf)
- func (l *Logger) SetLoggerOutputType(outputType logapi.LoggerOutputType)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct { logrus.Ext1FieldLogger LocalFile string RotateInterval int MaxFileSize float64 // contains filtered or unexported fields }
Logger implement
func (*Logger) SetLoggerOutputFileConfig ¶
func (l *Logger) SetLoggerOutputFileConfig(conf logapi.LoggerOutputFileConf)
func (*Logger) SetLoggerOutputType ¶
func (l *Logger) SetLoggerOutputType(outputType logapi.LoggerOutputType)
Click to show internal directories.
Click to hide internal directories.