loggerconfig

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LevelDefault is the default logger level.
	LevelDefault = "info"
	// EncodingDefault is the default logger encoding.
	EncodingDefault = "console"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger added in v0.46.0

type Logger struct {
	Level     string `mapstructure:"level"`
	Encoding  string `mapstructure:"encoding"`
	Timestamp bool   `mapstructure:"timestamp"`
}

Logger contains configuration for logger.

func (*Logger) Normalize added in v0.46.0

func (l *Logger) Normalize()

Normalize sets default values for Logger configuration.

Jump to

Keyboard shortcuts

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