zerologconfig

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ValidLogLevels  = []string{"trace", "debug", "info", "warn", "error"}
	ValidLogFormats = []string{"plain", "color", "json"}
)

Functions

func Configure

func Configure(cfg LogConfig)

Configure configures zerolog with the provided configuration Designed for use in CLI applications

Types

type LogConfig

type LogConfig struct {
	LogLevel  string
	LogFormat string
	LogCaller bool
}

Jump to

Keyboard shortcuts

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