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,plainorjson -
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 thesystemdfeature)gelf: Configuration fields for GELF (Graylog) network logging protocol (if jormungandr is built with thegelffeature):backend: hostname:port of a GELF serverlog_id: identifier of the source of the log, for thehostfield 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