Refactor logging

Fixes #18
This commit is contained in:
Thom Seddon
2019-01-22 12:40:14 +00:00
parent 1a3a099ac1
commit b3b31e2193
5 changed files with 103 additions and 33 deletions

View File

@ -36,6 +36,8 @@ The following configuration is supported:
|-lifetime|int|Session length in seconds (default 43200)|
|-url-path|string|Callback URL (default "_oauth")|
|-prompt|string|Space separated list of [OpenID prompt options](https://developers.google.com/identity/protocols/OpenIDConnect#prompt)|
|-log-level|string|Log level: trace, debug, info, warn, error, fatal, panic (default "warn")|
|-log-format|string|Log format: text, json, pretty (default "text")|
Configuration can also be supplied as environment variables (use upper case and swap `-`'s for `_`'s e.g. `-client-id` becomes `CLIENT_ID`)