Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NullLogger = &logrus.Logger{ Out: io.Discard, Formatter: new(logrus.TextFormatter), Hooks: make(logrus.LevelHooks), Level: logrus.PanicLevel, }
Functions ¶
func SanitizeUserInput ¶
func WithStacktrace ¶
func WithStacktrace(logger logrus.FieldLogger, err error) logrus.FieldLogger
WithStacktrace returns a new logrus.FieldLogger obtained by adding error information and, if available, a stack trace as fields to the provided logrus.FieldLogger.
Types ¶
type CommandLineFormatter ¶
type CommandLineFormatter struct{}
Click to show internal directories.
Click to hide internal directories.