logging

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Log = log.New()
)

Functions

func Init

func Init(cfg *Config)

Initialize a new logger. You can set a different logging level by using the logging.logLevel YAML key or using the LOG_LEVEL env variable. By default the logging level is set to "info" but it can be changed to either "warn" or "debug"

Types

type Config

type Config struct {
	LogLevel string `mapstructure:"logLevel"`
}

Jump to

Keyboard shortcuts

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