@@ -13,7 +13,7 @@ type Logging struct {
1313 RequestFormat string `flag:"request-logging-format" cfg:"request_logging_format"`
1414 StandardEnabled bool `flag:"standard-logging" cfg:"standard_logging"`
1515 StandardFormat string `flag:"standard-logging-format" cfg:"standard_logging_format"`
16− ExcludePaths string `flag:"exclude-logging-paths" cfg:"exclude_logging_paths"`
16+ ExcludePaths []string `flag:"exclude-logging-path" cfg:"exclude_logging_paths"`
1717 LocalTime bool `flag:"logging-local-time" cfg:"logging_local_time"`
1818 SilencePing bool `flag:"silence-ping-logging" cfg:"silence_ping_logging"`
1919 File LogFileOptions `cfg:",squash"`
@@ -38,7 +38,7 @@ func loggingFlagSet() *pflag.FlagSet {
3838 flagSet.Bool("request-logging", true, "Log HTTP requests")
3939 flagSet.String("request-logging-format", logger.DefaultRequestLoggingFormat, "Template for HTTP request log lines")
4040
41− flagSet.String("exclude-logging-paths", "", "Exclude logging requests to paths (eg: '/path1,/path2,/path3')")
41+ flagSet.StringSlice("exclude-logging-path", []string{}, "Exclude logging requests to paths (eg: '/path1,/path2,/path3')")
4242 flagSet.Bool("logging-local-time", true, "If the time in log files and backup filenames are local or UTC time")
4343 flagSet.Bool("silence-ping-logging", false, "Disable logging of requests to ping endpoint")
4444
@@ -54,6 +54,7 @@ func loggingFlagSet() *pflag.FlagSet {
5454// loggingDefaults creates a Logging structure, populating each field with its default value
5555func loggingDefaults() Logging {
5656 return Logging{
57+ ExcludePaths: nil,
5758 LocalTime: true,
5859 SilencePing: false,
5960 AuthEnabled: true,