logging

package
v0.0.0-...-06b94e1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogging

func InitLogging(verbose bool, quiet bool, debug bool)

There are seven log levels supported by logrus but let's not expose all that to the user. Instead let's say we have the following effective modes of logging: "debug", "verbose", "quiet" and "normal" i.e. the default.

"Quiet" shows ErrorLevel messages and higher. "Normal" shows WarnLevel messages and higher. "Verbose" shows DebugLevel messages and higher. And "debug" is the same as Verbose but we add the line number and the function name to each log message for extra debugging.

We're expecting only one of the bool params to be set, but if there are multiple set we'll accept it and the more verbose option will take precendence.

Types

This section is empty.

Jump to

Keyboard shortcuts

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