Logging
The following options are available in the log
section:
-
level
: log messages minimum severity. If not configured anywhere, defaults toinfo
. Possible values:off
,critical
,error
,warn
,info
,debug
,trace
-
format
: Log output format,plain
orjson
-
output
: Log output destination (multiple destinations are supported). Possible values are:stdout
: standard outputstderr
: standard errorjournald
: journald service (only available on Linux with systemd, (if jormungandr is built with thesystemd
feature)gelf
: Configuration fields for GELF (Graylog) network logging protocol (if jormungandr is built with thegelf
feature):backend
: hostname:port of a GELF serverlog_id
: identifier of the source of the log, for thehost
field in the messages
file
: path to the log file
Example
A single configurable backend is supported.
Output to stdout
log:
output: stdout
level: trace
format: plain
Output to a file
log:
output:
file: example.log
level: info
format: json