forked from oauth2-proxy/oauth2-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
69 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package options | ||
|
||
// Logging contains all options required for configuring the logging | ||
type Logging struct { | ||
AuthEnabled bool `flag:"auth-logging" cfg:"auth_logging"` | ||
AuthFormat string `flag:"auth-logging-format" cfg:"auth_logging_format"` | ||
RequestEnabled bool `flag:"request-logging" cfg:"request_logging"` | ||
RequestFormat string `flag:"request-logging-format" cfg:"request_logging_format"` | ||
StandardEnabled bool `flag:"standard-logging" cfg:"standard_logging"` | ||
StandardFormat string `flag:"standard-logging-format" cfg:"standard_logging_format"` | ||
ExcludePaths string `flag:"exclude-logging-paths" cfg:"exclude_logging_paths"` | ||
LocalTime bool `flag:"logging-local-time" cfg:"logging_local_time"` | ||
SilencePing bool `flag:"silence-ping-logging" cfg:"silence_ping_logging"` | ||
File LogFileOptions `cfg:",squash"` | ||
} | ||
|
||
// LogFileOptions contains options for configuring logging to a file | ||
type LogFileOptions struct { | ||
Filename string `flag:"logging-filename" cfg:"logging_filename"` | ||
MaxSize int `flag:"logging-max-size" cfg:"logging_max_size"` | ||
MaxAge int `flag:"logging-max-age" cfg:"logging_max_age"` | ||
MaxBackups int `flag:"logging-max-backups" cfg:"logging_max_backups"` | ||
Compress bool `flag:"logging-compress" cfg:"logging_compress"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters