Log
Directives to configure the logging system
mode string console
Specifies the format of the logs. consoles
writes logs to be consumed by humans.
json
writes logs in the JSON format for be consumed by machines.
[log]
mode = "json"
level string info
Specifies the log level. Valid values are debug
, info
, warn
and error
.
[log]
level = "debug"
output string stdout
Specifies the log output. Special values stdout
will write to standard output and stderr
to standard error.
Any other value write to a file. If the file already exists it will append to it.
[log]
output = "/var/log/revad.log"
Last modified June 9, 2020: Tool for consistent documentation generation (#810) (fa72def8)