logger

package
v0.0.0-...-40aef6d Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalLoggerFlags = []cli.Flag{
	&cli.StringFlag{
		EnvVars: []string{"VANITY_LOG_LEVEL"},
		Name:    "log-level",
		Usage:   "set logging level",
		Value:   "info",
	},
	&cli.StringFlag{
		EnvVars: []string{"LOG_FILE"},
		Name:    "log-file",
		Usage:   "Output destination for logs. 'stdout' and 'stderr' can be used as special keywords.",
		Value:   "stderr",
	},
	&cli.BoolFlag{
		EnvVars: []string{"VANITY_DEBUG_PRETTY"},
		Name:    "pretty",
		Usage:   "enable pretty-printed debug output",
		Value:   isInteractiveTerminal(),
	},
	&cli.BoolFlag{
		EnvVars: []string{"VANITY_DEBUG_NOCOLOR"},
		Name:    "nocolor",
		Usage:   "disable colored debug output, only has effect if pretty output is set too",
		Value:   !isInteractiveTerminal(),
	},
}

Functions

func SetupGlobalLogger

func SetupGlobalLogger(c *cli.Context, outputLvl bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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