Documentation ¶
Index ¶
- Constants
- Variables
- func LogDebugWithLevel(msg string, level logrus.Level, args ...interface{})
- func LogError(msg string, err error, args ...map[string]interface{})
- func LogErrorWithLevel(msg string, err error, level logrus.Level, args ...map[string]interface{})
- func LogInfo(msg string, args ...interface{})
- func LogInfoWithLevel(msg string, level logrus.Level, args ...interface{})
- func LogPanic(msg string, err error, args ...map[string]interface{})
- func LogPanicWithLevel(msg string, err error, level logrus.Level, args ...map[string]interface{})
- func LogPrint(msg string)
- func LogStringAsError(msg string)
- func LogTraceWithLevel(msg string, level logrus.Level, args ...interface{})
- func LogWarnWithLevel(msg string, level logrus.Level, args ...interface{})
- func SetLogLevel(level string)
Constants ¶
View Source
const ( // PanicLevel level, highest level of severity. Logs and then calls panic with the // message passed to Debug, Info, ... PanicLevel = logrus.PanicLevel // FatalLevel level. Logs and then calls `logger.Exit(1)`. It will exit even if the // logging level is set to Panic. FatalLevel = logrus.FatalLevel // ErrorLevel level. Logs. Used for errors that should definitely be noted. // Commonly used for hooks to send errors to an error tracking service. ErrorLevel = logrus.ErrorLevel // WarnLevel level. Non-critical entries that deserve eyes. WarnLevel = logrus.WarnLevel // InfoLevel level. General operational entries about what's going on inside the // application. InfoLevel = logrus.InfoLevel // DebugLevel level. Usually only enabled when debugging. Very verbose logging. DebugLevel = logrus.DebugLevel // TraceLevel level. Designates finer-grained informational events than the Debug. TraceLevel = logrus.TraceLevel )
Variables ¶
View Source
var CurrentLevel = InfoLevel
Functions ¶
func LogDebugWithLevel ¶
func LogErrorWithLevel ¶
func LogInfoWithLevel ¶
func LogPanicWithLevel ¶
func LogStringAsError ¶
func LogStringAsError(msg string)
func LogTraceWithLevel ¶
func LogWarnWithLevel ¶
func SetLogLevel ¶
func SetLogLevel(level string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.