Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalLoggerFlags = []cli.Flag{
&cli.StringFlag{
Sources: cli.EnvVars("WOODPECKER_LOG_LEVEL"),
Name: "log-level",
Usage: "set logging level",
Value: "info",
},
&cli.StringFlag{
Sources: cli.EnvVars("WOODPECKER_LOG_FILE"),
Name: "log-file",
Usage: "Output destination for logs. 'stdout' and 'stderr' can be used as special keywords.",
Value: "stderr",
},
&cli.BoolFlag{
Sources: cli.EnvVars("WOODPECKER_DEBUG_PRETTY"),
Name: "pretty",
Usage: "enable pretty-printed debug output",
Value: isInteractiveTerminal(),
},
&cli.BoolFlag{
Sources: cli.EnvVars("WOODPECKER_DEBUG_NOCOLOR"),
Name: "nocolor",
Usage: "disable colored debug output, only has effect if pretty output is set too",
Value: !isInteractiveTerminal(),
},
}
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.