logger

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL