Documentation ¶
Index ¶
- Variables
- func NewConsoleLogger(opts ...ConsoleLoggerFormatterOption) *logrus.Logger
- type ConsoleLoggerFormatterOption
- func DisableColors(flag bool) ConsoleLoggerFormatterOption
- func DisableQuote(flag bool) ConsoleLoggerFormatterOption
- func DisableTimestamp(flag bool) ConsoleLoggerFormatterOption
- func EnvironmentOverrideColors(flag bool) ConsoleLoggerFormatterOption
- func ForceColors(flag bool) ConsoleLoggerFormatterOption
- func ForceQuote(flag bool) ConsoleLoggerFormatterOption
- func FullTimestamp(flag bool) ConsoleLoggerFormatterOption
- func TimestampFormat(format string) ConsoleLoggerFormatterOption
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ConsoleLogger *logrus.Logger
)
Functions ¶
func NewConsoleLogger ¶
func NewConsoleLogger(opts ...ConsoleLoggerFormatterOption) *logrus.Logger
Types ¶
type ConsoleLoggerFormatterOption ¶ added in v1.3.0
type ConsoleLoggerFormatterOption func(formatter *logrus.TextFormatter)
func DisableColors ¶ added in v1.3.0
func DisableColors(flag bool) ConsoleLoggerFormatterOption
func DisableQuote ¶ added in v1.3.0
func DisableQuote(flag bool) ConsoleLoggerFormatterOption
func DisableTimestamp ¶ added in v1.3.0
func DisableTimestamp(flag bool) ConsoleLoggerFormatterOption
func EnvironmentOverrideColors ¶ added in v1.3.0
func EnvironmentOverrideColors(flag bool) ConsoleLoggerFormatterOption
func ForceColors ¶ added in v1.3.0
func ForceColors(flag bool) ConsoleLoggerFormatterOption
func ForceQuote ¶ added in v1.3.0
func ForceQuote(flag bool) ConsoleLoggerFormatterOption
func FullTimestamp ¶ added in v1.3.0
func FullTimestamp(flag bool) ConsoleLoggerFormatterOption
func TimestampFormat ¶ added in v1.3.0
func TimestampFormat(format string) ConsoleLoggerFormatterOption
Click to show internal directories.
Click to hide internal directories.