log

package
v0.0.0-...-6b8b8f0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogbook

func NewLogbook(conf Config) mlog.Logbook

NewLogbook returns configured logbook

Types

type Config

type Config struct {
	Provider string `yaml:"provider"`
	Level    string `yaml:"level"`
}

Config stuct privides configuration for logger

func (*Config) Cleanup

func (conf *Config) Cleanup()

Cleanup releases all allocated objects

func (*Config) Reset

func (conf *Config) Reset()

Reset fills config structure with default values

func (*Config) Validate

func (conf *Config) Validate() error

Validate provides config structure validation

Jump to

Keyboard shortcuts

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