log

package
v0.0.0-...-e2a0a66 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLog

func InitLog()

Loads Configuration from Environment and configures the default logger Relevant LogLevel

Types

type LogConfig

type LogConfig struct {
	Formatter   logrus.Formatter
	Writer      io.Writer
	PrettyPrint bool
	LogLevel    logrus.Level
}

func GetLogConfig

func GetLogConfig() *LogConfig

func (*LogConfig) SetFormatter

func (l *LogConfig) SetFormatter(v string)

func (*LogConfig) SetLogLevel

func (l *LogConfig) SetLogLevel(v string)

func (*LogConfig) SetPrettyPrint

func (l *LogConfig) SetPrettyPrint(v string)

func (*LogConfig) SetWriter

func (l *LogConfig) SetWriter(v string)

Jump to

Keyboard shortcuts

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