* refactor: logging config key to log This refactors the recent pre-release change adding log options to their own configuration section in favor of a log section (from logging). * docs: add step to getting started to get the latest tagged commit This is so we avoid issues with changes on master having differences that don't work on the latest docker tag. * test: adjust tests * docs: adjust doc strings
2.5 KiB
layout | title | parent | nav_order |
---|---|---|---|
default | Logging | Configuration | 4 |
Logging
The logging section tunes the logging settings.
Configuration
log:
level: info
format: text
file_path: ""
keep_stdout: false
Options
level
Defines the level of logs used by Authelia. This level can be set to trace
, debug
, info
, warn
, or error
. When
setting level to trace
, you will generate a large amount of log entries and expose the /debug/vars
and
/debug/pprof/
endpoints which should not be enabled in production.
log:
level: debug
format
Defines the format of the logs written by Authelia. This format can be set to json
or text
.
log:
format: json
JSON format
{"level":"info","msg":"Logging severity set to info","time":"2020-01-01T00:00:00+11:00"}
{"level":"info","msg":"Authelia is listening for non-TLS connections on 0.0.0.0:9091","time":"2020-01-01T00:00:00+11:00"}
Text format
time="2020-01-01T00:00:00+11:00" level=info msg="Logging severity set to info"
time="2020-01-01T00:00:00+11:00" level=info msg="Authelia is listening for non-TLS connections on 0.0.0.0:9091"
file_path
Logs can be stored in a file when file path is provided. Otherwise logs are written to standard output. When setting the
level to debug
or trace
this will generate large amount of log entries. Administrators will need to ensure that
they rotate and/or truncate the logs over time to prevent significant long-term disk usage.
log:
file_path: /config/authelia.log
keep_stdout
Overrides the behaviour to redirect logging only to the file_path
. If set to true
logs will be written to both
standard output, and the defined logging location.
log:
keep_stdout: true