@@ -61,6 +61,7 @@ type Options struct {
6161
6262 Cookie CookieOptions `cfg:",squash"`
6363 Session SessionOptions `cfg:",squash"`
64+ Logging Logging `cfg:",squash"`
6465
6566 Upstreams []string `flag:"upstream" cfg:"upstreams"`
6667 SkipAuthRegex []string `flag:"skip-auth-regex" cfg:"skip_auth_regex"`
@@ -101,27 +102,12 @@ type Options struct {
101102 ApprovalPrompt string `flag:"approval-prompt" cfg:"approval_prompt"` // Deprecated by OIDC 1.0
102103 UserIDClaim string `flag:"user-id-claim" cfg:"user_id_claim"`
103104
104− // Configuration values for logging
105− LoggingFilename string `flag:"logging-filename" cfg:"logging_filename"`
106− LoggingMaxSize int `flag:"logging-max-size" cfg:"logging_max_size"`
107− LoggingMaxAge int `flag:"logging-max-age" cfg:"logging_max_age"`
108− LoggingMaxBackups int `flag:"logging-max-backups" cfg:"logging_max_backups"`
109− LoggingLocalTime bool `flag:"logging-local-time" cfg:"logging_local_time"`
110− LoggingCompress bool `flag:"logging-compress" cfg:"logging_compress"`
111− StandardLogging bool `flag:"standard-logging" cfg:"standard_logging"`
112− StandardLoggingFormat string `flag:"standard-logging-format" cfg:"standard_logging_format"`
113− RequestLogging bool `flag:"request-logging" cfg:"request_logging"`
114− RequestLoggingFormat string `flag:"request-logging-format" cfg:"request_logging_format"`
115− ExcludeLoggingPaths string `flag:"exclude-logging-paths" cfg:"exclude_logging_paths"`
116− SilencePingLogging bool `flag:"silence-ping-logging" cfg:"silence_ping_logging"`
117− AuthLogging bool `flag:"auth-logging" cfg:"auth_logging"`
118− AuthLoggingFormat string `flag:"auth-logging-format" cfg:"auth_logging_format"`
119− SignatureKey string `flag:"signature-key" cfg:"signature_key"`
120− AcrValues string `flag:"acr-values" cfg:"acr_values"`
121− JWTKey string `flag:"jwt-key" cfg:"jwt_key"`
122− JWTKeyFile string `flag:"jwt-key-file" cfg:"jwt_key_file"`
123− PubJWKURL string `flag:"pubjwk-url" cfg:"pubjwk_url"`
124− GCPHealthChecks bool `flag:"gcp-healthchecks" cfg:"gcp_healthchecks"`
105+ SignatureKey string `flag:"signature-key" cfg:"signature_key"`
106+ AcrValues string `flag:"acr-values" cfg:"acr_values"`
107+ JWTKey string `flag:"jwt-key" cfg:"jwt_key"`
108+ JWTKeyFile string `flag:"jwt-key-file" cfg:"jwt_key_file"`
109+ PubJWKURL string `flag:"pubjwk-url" cfg:"pubjwk_url"`
110+ GCPHealthChecks bool `flag:"gcp-healthchecks" cfg:"gcp_healthchecks"`
125111
126112 // internal values that are set after config validation
127113 redirectURL *url.URL
@@ -197,20 +183,24 @@ func NewOptions() *Options {
197183 UserIDClaim: "email",
198184 InsecureOIDCAllowUnverifiedEmail: false,
199185 SkipOIDCDiscovery: false,
200− LoggingFilename: "",
201− LoggingMaxSize: 100,
202− LoggingMaxAge: 7,
203− LoggingMaxBackups: 0,
204− LoggingLocalTime: true,
205− LoggingCompress: false,
206− ExcludeLoggingPaths: "",
207− SilencePingLogging: false,
208− StandardLogging: true,
209− StandardLoggingFormat: logger.DefaultStandardLoggingFormat,
210− RequestLogging: true,
211− RequestLoggingFormat: logger.DefaultRequestLoggingFormat,
212− AuthLogging: true,
213− AuthLoggingFormat: logger.DefaultAuthLoggingFormat,
186+ Logging: Logging{
187+ ExcludePaths: "",
188+ LocalTime: true,
189+ SilencePing: false,
190+ AuthEnabled: true,
191+ AuthFormat: logger.DefaultAuthLoggingFormat,
192+ RequestEnabled: true,
193+ RequestFormat: logger.DefaultRequestLoggingFormat,
194+ StandardEnabled: true,
195+ StandardFormat: logger.DefaultStandardLoggingFormat,
196+ File: LogFileOptions{
197+ Filename: "",
198+ MaxSize: 100,
199+ MaxAge: 7,
200+ MaxBackups: 0,
201+ Compress: false,
202+ },
203+ },
214204 }
215205}
216206