Help us shape the future of Go! Take the 2026 Go Developer Survey

flag

package
v0.72.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: Apache-2.0 Imports: 3 Imported by: 118

Documentation

Index

Constants

View Source
const FormatFlagName = "log.format"

FormatFlagName is the canonical flag name to configure the log format within Prometheus projects.

View Source
const LevelFlagName = "log.level"

LevelFlagName is the canonical flag name to configure the allowed log level within Prometheus projects.

Variables

View Source
var FormatFlagHelp = "Output format of log messages. One of: [" + strings.Join(promslog.FormatFlagOptions, ", ") + "]"

FormatFlagHelp is the help description for the log.format flag.

View Source
var LevelFlagHelp = "Only log messages with the given severity or above. One of: [" + strings.Join(promslog.LevelFlagOptions, ", ") + "]"

LevelFlagHelp is the help description for the log.level flag.

Functions

func AddFlags

func AddFlags(a *kingpin.Application, config *promslog.Config)

AddFlags adds the flags used by this package to the Kingpin application. To use the default Kingpin application, call AddFlags(kingpin.CommandLine).

Types

This section is empty.

Jump to

Keyboard shortcuts

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