Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LogJsonFlag = cli.BoolFlag{ Name: "log.json", Usage: "Format console logs with JSON", } LogConsoleJsonFlag = cli.BoolFlag{ Name: "log.console.json", Usage: "Format console logs with JSON", } LogDirJsonFlag = cli.BoolFlag{ Name: "log.dir.json", Usage: "Format file logs with JSON", } LogVerbosityFlag = cli.StringFlag{ Name: "verbosity", Usage: "Set the log level for console logs", Value: log.LvlInfo.String(), } LogConsoleVerbosityFlag = cli.StringFlag{ Name: "log.console.verbosity", Usage: "Set the log level for console logs", Value: log.LvlInfo.String(), } LogDirPathFlag = cli.StringFlag{ Name: "log.dir.path", Usage: "Path to store user and error logs to disk", } LogDirVerbosityFlag = cli.StringFlag{ Name: "log.dir.verbosity", Usage: "Set the log verbosity for logs stored to disk", Value: log.LvlInfo.String(), } )
View Source
var Flags = []cli.Flag{ &LogJsonFlag, &LogConsoleJsonFlag, &LogDirJsonFlag, &LogVerbosityFlag, &LogConsoleVerbosityFlag, &LogDirPathFlag, &LogDirVerbosityFlag, }
Functions ¶
func SetupLogger ¶
func SetupLogger(filePrefix string)
func SetupLoggerCmd ¶
func SetupLoggerCtx ¶
func SetupLoggerCtx(filePrefix string, ctx *cli.Context)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.