Log
The logging section tunes the logging settings.
Configuration
Example Configuration
This section is intended as an example configuration to help users with a rough contextual layout of this configuration section, it is not intended to explain the options. The configuration shown may not be a valid configuration, and you should see the options section below and the navigation links to properly understand each option individually.
Options
This section describes the individual configuration 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.
format
Defines the format of the logs written by Authelia. This format can be set to json
or text
.
JSON format
Text format
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.
There are two replacements that exist in this string for the purpose of including the date. The %d
value which just
uses the RFC3339 layout, and the {datetime}
replacement which by
default uses the RFC3339 layout, but optionally can be suffixed with the
Go Layout semantics in the format of {datetime:<layout>}
where <layout>
is
the layout supported by Go.
File Path Examples
Standard Example:
Date Time Example:
Date Time Example (with custom layout):
keep_stdout
Overrides the behavior 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.