File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,6 @@ const FormatFlagName = "log.format"
41
41
// FormatFlagHelp is the help description for the log.format flag.
42
42
var FormatFlagHelp = "Output format of log messages. One of: [" + strings .Join (promslog .FormatFlagOptions , ", " ) + "]"
43
43
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
-
51
44
// AddFlags adds the flags used by this package to the Kingpin application.
52
45
// To use the default Kingpin application, call AddFlags(kingpin.CommandLine)
53
46
func AddFlags (a * kingpin.Application , config * promslog.Config ) {
@@ -60,9 +53,4 @@ func AddFlags(a *kingpin.Application, config *promslog.Config) {
60
53
a .Flag (FormatFlagName , FormatFlagHelp ).
61
54
Default ("logfmt" ).HintOptions (promslog .FormatFlagOptions ... ).
62
55
SetValue (config .Format )
63
-
64
- config .Style = & promslog.AllowedStyle {}
65
- a .Flag (StyleFlagName , StyleFlagHelp ).
66
- Default ("slog" ).HintOptions (promslog .StyleFlagOptions ... ).
67
- SetValue (config .Style )
68
56
}
You can’t perform that action at this time.
0 commit comments