package flag
import "github.com/prometheus/common/promlog/flag"
Index ¶
Constants ¶
const FormatFlagHelp = "Output format of log messages. One of: [logfmt, json]"
FormatFlagHelp is the help description for the log.format flag.
const FormatFlagName = "log.format"
FormatFlagName is the canonical flag name to configure the log format within Prometheus projects.
const LevelFlagHelp = "Only log messages with the given severity or above. One of: [debug, info, warn, error]"
LevelFlagHelp is the help description for the log.level flag.
const LevelFlagName = "log.level"
LevelFlagName is the canonical flag name to configure the allowed log level within Prometheus projects.
Functions ¶
func AddFlags ¶
func AddFlags(a *kingpin.Application, config *promlog.Config)
AddFlags adds the flags used by this package to the Kingpin application. To use the default Kingpin application, call AddFlags(kingpin.CommandLine)
Source Files ¶
- Version
- v0.18.0
- Published
- Feb 26, 2021
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 9 minutes ago –
Tools for package owners.