Documentation ¶
Index ¶
Constants ¶
View Source
const ( LevelFlagName = "log.level" FormatFlagName = "log.format" ColorFlagName = "log.color" )
Variables ¶
This section is empty.
Functions ¶
func NewLoggingMiddleware ¶
func SetupDefaults ¶
func SetupDefaults()
Types ¶
type CLIConfig ¶
type CLIConfig struct { Level string // Log level: trace, debug, info, warn, error, crit. Capitals are accepted too. Color bool // Color the log output. Defaults to true if terminal is detected. Format string // Format the log output. Supported formats: 'text', 'terminal', 'logfmt', 'json', 'json-pretty' }
func DefaultCLIConfig ¶
func DefaultCLIConfig() CLIConfig
func ReadCLIConfig ¶
func ReadCLIConfig(ctx *cli.Context) CLIConfig
func ReadLocalCLIConfig ¶
func ReadLocalCLIConfig(ctx *cli.Context) CLIConfig
Click to show internal directories.
Click to hide internal directories.