conf

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaultLogConfig

func SetDefaultLogConfig()

SetDefaultLogConfig set default log configuration

func SetDefaultLogGroupConfig

func SetDefaultLogGroupConfig()

SetDefaultLogGroupConfig set default log configuration

Types

type LogConfig

type LogConfig struct {
	Level       string `toml:"level"`
	Path        string `toml:"path"`
	GraylogAddr string `toml:"graylog"`
	LokiAddr    string `toml:"loki"`
	Console     bool   `toml:"console"`
	Fields      string `toml:"fields"`
}

LogConfig log configuration

func GetLogConfig

func GetLogConfig() *LogConfig

GetLogConfig get log configuration

type LogGroupConfig

type LogGroupConfig struct {
	LogConfig
	Levels map[string][]string `toml:"levels"` // level-[]module
}

LogGroupConfig log group configuration

func GetLogGroupConfig

func GetLogGroupConfig() (*LogGroupConfig, error)

GetLogGroupConfig get log configuration

Jump to

Keyboard shortcuts

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