loggerconfig

package
v0.44.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

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

	AddressDefault            = "localhost:3100"
	BatchEntriesNumberDefault = 100
	BatchWaitDefault          = time.Second
)

Variables

This section is empty.

Functions

func Destination added in v0.38.0

func Destination(c *config.Config) string

Destination returns the value of "destination" config parameter from "logger" section.

Returns DestinationDefault 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.

func Timestamp added in v0.43.0

func Timestamp(c *config.Config) bool

Timestamp returns the value of "timestamp" config parameter from "logger" section.

Returns false if the value isn't specified.

func ToLokiConfig added in v0.38.0

func ToLokiConfig(c *config.Config) loki.Config

ToLokiConfig extracts loki config.

Types

This section is empty.

Jump to

Keyboard shortcuts

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