Documentation ¶
Index ¶
- Constants
- func Debug(args ...interface{})
- func Error(args ...interface{})
- func Info(args ...interface{})
- func NewContext(ctx context.Context, keyValuePairs ...interface{}) context.Context
- func SetDefaultLogger(l *logrus.Logger)
- func SetLevel(l Level)
- func SetLevelString(l string)
- func SetLogSourceLine(enabled bool)
- func Trace(args ...interface{})
- func Warn(args ...interface{})
- type Level
- type LevelFunc
Constants ¶
View Source
const ( LevelCritical = Level(logrus.FatalLevel) LevelError = Level(logrus.ErrorLevel) LevelWarn = Level(logrus.WarnLevel) LevelInfo = Level(logrus.InfoLevel) LevelDebug = Level(logrus.DebugLevel) LevelTrace = Level(logrus.TraceLevel) )
Variables ¶
This section is empty.
Functions ¶
func NewContext ¶
func SetDefaultLogger ¶
func SetLevel ¶
func SetLevel(l Level)
SetLevel sets the global log level used by the simple logger.
func SetLevelString ¶ added in v0.5.0
func SetLevelString(l string)
func SetLogSourceLine ¶ added in v0.5.0
func SetLogSourceLine(enabled bool)
Types ¶
Click to show internal directories.
Click to hide internal directories.