mirror of
https://github.com/traefik/traefik
synced 2026-02-03 08:50:32 +00:00
Add JSON as access logging format
This commit is contained in:
committed by
Ludovic Fernandez
parent
39388a2199
commit
a9216e24f5
@@ -36,6 +36,7 @@
|
||||
# Access logs file
|
||||
#
|
||||
# Optional
|
||||
# Deprecated - see [accessLog] lower down
|
||||
#
|
||||
# accessLogsFile = "log/access.log"
|
||||
|
||||
@@ -219,6 +220,30 @@
|
||||
# main = "local4.com"
|
||||
|
||||
|
||||
# Set access log options
|
||||
#
|
||||
# Optional
|
||||
#
|
||||
# [accessLog]
|
||||
|
||||
# Sets the file path for the access log. If none is given (the default)
|
||||
# no access logs are produced. Intermediate directories are created if
|
||||
# necessary.
|
||||
#
|
||||
# Optional
|
||||
# Default: ""
|
||||
#
|
||||
# filePath = "/path/to/log/log.txt"
|
||||
#
|
||||
|
||||
# Format is either "json" or "common".
|
||||
#
|
||||
# Optional
|
||||
# Default: "common"
|
||||
#
|
||||
# format = "common"
|
||||
#
|
||||
|
||||
# Entrypoints definition
|
||||
#
|
||||
# Optional
|
||||
|
||||
Reference in New Issue
Block a user