diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/configuration/general.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/configuration/general.md b/docs/configuration/general.md index 16589c842..3443bed35 100644 --- a/docs/configuration/general.md +++ b/docs/configuration/general.md @@ -26,6 +26,19 @@ log-db-queries: false # Default: true log-client-ip: true +# String. Format to use for formatting log entries. +# Supports "logfmt" and "json", with examples below: +# +# logfmt: +# func=router.(*Router).Start.func1 level=INFO msg="listening on 127.0.0.1:8080" +# +# json: +# {"func":"router.(*Router).Start.func1", "level":"INFO", "msg":"listening on 127.0.0.1:8080"} +# +# Examples: ["logfmt", "json"] +# Default: "logfmt" +log-format: "logfmt" + # String. Format to use for the timestamp in log lines. # If set to the empty string, the timestamp will be # ommitted from the logs entirely. |
