@@ -486,7 +486,19 @@ The default format is configured as follows:
486486{{.Client}} - {{.Username}} [{{.Timestamp}}] [{{.Status}}] {{.Message}}
487487```
488488
489−[See `authLogMessageData` in `logging_handler.go`](./logger/logger.go) for all available variables.
489+Available variables for auth logging:
490+
491+| Variable | Example | Description |
492+| --- | --- | --- |
493+| Client | 74.125.224.72 | The client/remote IP address. Will use the X-Real-IP header it if exists. |
494+| Host | domain.com | The value of the Host header. |
495+| Protocol | HTTP/1.0 | The request protocol. |
496+| RequestMethod | GET | The request method. |
497+| Timestamp | 19/Mar/2015:17:20:19 -0400 | The date and time of the logging event. |
498+| UserAgent | - | The full user agent as reported by the requesting client. |
499+| Username | username@email.com | The email or username of the auth request. |
500+| Status | AuthSuccess | The status of the auth request. See above for details. |
501+| Message | Authenticated via OAuth2 | The details of the auth attempt. |
490502
491503### Request Log Format
492504HTTP request logs will output by default in the below format:
@@ -502,7 +514,22 @@ The default format is configured as follows:
502514{{.Client}} - {{.Username}} [{{.Timestamp}}] {{.Host}} {{.RequestMethod}} {{.Upstream}} {{.RequestURI}} {{.Protocol}} {{.UserAgent}} {{.StatusCode}} {{.ResponseSize}} {{.RequestDuration}}
503515```
504516
505−[See `requestLogMessageData` in `logging_handler.go`](./logger/logger.go) for all available variables.
517+Available variables for request logging:
518+
519+| Variable | Example | Description |
520+| --- | --- | --- |
521+| Client | 74.125.224.72 | The client/remote IP address. Will use the X-Real-IP header it if exists. |
522+| Host | domain.com | The value of the Host header. |
523+| Protocol | HTTP/1.0 | The request protocol. |
524+| RequestDuration | 0.001 | The time in seconds that a request took to process. |
525+| RequestMethod | GET | The request method. |
526+| RequestURI | "/oauth2/auth" | The URI path of the request. |
527+| ResponseSize | 12 | The size in bytes of the response. |
528+| StatusCode | 200 | The HTTP status code of the response. |
529+| Timestamp | 19/Mar/2015:17:20:19 -0400 | The date and time of the logging event. |
530+| Upstream | - | The upstream data of the HTTP request. |
531+| UserAgent | - | The full user agent as reported by the requesting client. |
532+| Username | username@email.com | The email or username of the auth request. |
506533
507534### Standard Log Format
508535All other logging that is not covered by the above two types of logging will be output in this standard logging format. This includes configuration information at startup and errors that occur outside of a session. The default format is below:
@@ -517,6 +544,14 @@ If you require a different format than that, you can configure it with the `-sta
517544[{{.Timestamp}}] [{{.File}}] {{.Message}}
518545```
519546
547+Available variables for standard logging:
548+
549+| Variable | Example | Description |
550+| --- | --- | --- |
551+| Timestamp | 19/Mar/2015:17:20:19 -0400 | The date and time of the logging event. |
552+| File | main.go:40 | The file and line number of the logging statement. |
553+| Message | HTTP: listening on 127.0.0.1:4180 | The details of the log statement. |
554+
520555## Adding a new Provider
521556
522557Follow the examples in the [`providers` package](providers/) to define a new