logging

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ENV_KEY = "LOGDIR"

Variables

View Source
var (
	MaxBackups = 5
	MaxSize    = 5  // megabytes
	MaxAge     = 30 // days
)

Functions

func AutoLogger added in v0.3.0

func AutoLogger() zerolog.Logger

func GetLogger

func GetLogger(pkg string) *zerolog.Logger

func SetLogLevel

func SetLogLevel(level zerolog.Level)

func SetLoggerField added in v0.3.1

func SetLoggerField(ss ...string)

func SetPackageLevel added in v0.3.1

func SetPackageLevel(pkg string, level zerolog.Level)

Types

This section is empty.

Jump to

Keyboard shortcuts

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