logging

package
v0.2.10-61 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 9 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)

func Get

func Get(name string) Factory

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