logger

package
v0.0.0-...-0ab412c Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CmdLogFormat = "log-format"
View Source
const CmdLogLevel = "log-level"
View Source
const CmdLogOutputs = "log-outputs"
View Source
const DefaultLogFormat = "console"
View Source
const DefaultLogLevel = "info"

Variables

View Source
var DefaultLogOutputs = []string{"stderr"}

Functions

func ConfigCmd

func ConfigCmd(cmd *cobra.Command)

func SetupLogger

func SetupLogger(level zapcore.Level, cmdOutputs []string, cmdFormat string)

func SetupLoggerFromCmdArgs

func SetupLoggerFromCmdArgs(cmd *cobra.Command)

Types

This section is empty.

Jump to

Keyboard shortcuts

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