logging

package
v0.2.10-112 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List added in v0.2.11

func List() map[string]Factory

func New added in v0.2.11

func New(cfg *Config) log.Logger

New logger

func Register added in v0.2.11

func Register(name string, factory Factory)

Types

type Config added in v0.2.11

type Config struct {
	Level          string   `yaml:"level"`
	AsJson         bool     `yaml:"as_json"`
	DisableLoggers []string `yaml:"disable_loggers"`
}

type Factory added in v0.2.11

type Factory func(log log.Logger)

type LogConfigLoader added in v0.2.11

type LogConfigLoader struct {
	Log *Config `yaml:"logger"`
}

Directories

Path Synopsis
logext

Jump to

Keyboard shortcuts

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