loggerconfig

package
v0.44.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LevelDefault is a default logger level.
	LevelDefault = "info"

	// EncodingDefault is a default logger encoding.
	EncodingDefault = "console"
)

Variables

This section is empty.

Functions

func Encoding added in v0.44.0

func Encoding(c *config.Config) string

Encoding returns the value of "encoding" config parameter from "logger" section.

Returns EncodingDefault if the value is not a non-empty string.

func Level

func Level(c *config.Config) string

Level returns the value of "level" config parameter from "logger" section.

Returns LevelDefault if the value is not a non-empty string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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