Documentation ¶
Index ¶
Constants ¶
View Source
const ( 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 Logger = logrus.New()
Functions ¶
Types ¶
type ColorScheme ¶
type TextFormatter ¶
type TextFormatter struct { LogFormat string TimestampFormat string QuoteCharacter string sync.Once // contains filtered or unexported fields }
func (*TextFormatter) SetColorScheme ¶
func (f *TextFormatter) SetColorScheme(colorScheme *ColorScheme)
type TraceIdGenerate ¶
Click to show internal directories.
Click to hide internal directories.