Skip to content

Commit 1062f39

Browse files
committed
ref: remove promslog log style flag
This will be replaced by a param in the logging constructor Signed-off-by: TJ Hoplock <[email protected]>
1 parent 4667cd7 commit 1062f39

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

promslog/flag/flag.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ const FormatFlagName = "log.format"
4141
// FormatFlagHelp is the help description for the log.format flag.
4242
var FormatFlagHelp = "Output format of log messages. One of: [" + strings.Join(promslog.FormatFlagOptions, ", ") + "]"
4343

44-
// StyleFlagName is the canonical flag name to configure the log line
45-
// formatting within Prometheus projects.
46-
const StyleFlagName = "log.style"
47-
48-
// StyleFlagHelp is the help description for the log.style flag.
49-
var StyleFlagHelp = "Output style of the log messages. One of: [" + strings.Join(promslog.StyleFlagOptions, ", ") + "]"
50-
5144
// AddFlags adds the flags used by this package to the Kingpin application.
5245
// To use the default Kingpin application, call AddFlags(kingpin.CommandLine)
5346
func AddFlags(a *kingpin.Application, config *promslog.Config) {
@@ -60,9 +53,4 @@ func AddFlags(a *kingpin.Application, config *promslog.Config) {
6053
a.Flag(FormatFlagName, FormatFlagHelp).
6154
Default("logfmt").HintOptions(promslog.FormatFlagOptions...).
6255
SetValue(config.Format)
63-
64-
config.Style = &promslog.AllowedStyle{}
65-
a.Flag(StyleFlagName, StyleFlagHelp).
66-
Default("slog").HintOptions(promslog.StyleFlagOptions...).
67-
SetValue(config.Style)
6856
}

0 commit comments

Comments
 (0)