loggerconfig

package
v0.48.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 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"`
	Sampling  Sampling `mapstructure:"sampling"`
}

Logger contains configuration for logger.

func (*Logger) Normalize added in v0.46.0

func (l *Logger) Normalize()

Normalize sets default values for Logger configuration.

type Sampling added in v0.47.0

type Sampling struct {
	Enabled bool `mapstructure:"enabled"`
}

Sampling configures log sampling.

Jump to

Keyboard shortcuts

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