1
0
Fork 0

add json format support for traefik logs

This commit is contained in:
Marco Jantke 2017-09-21 10:42:02 +02:00 committed by Traefiker
parent 2cbf9cae71
commit 837db9a2d9
6 changed files with 84 additions and 15 deletions

View file

@ -9,13 +9,6 @@
#
# debug = true
# Traefik logs file
# If not defined, logs to stdout
#
# Optional
#
# traefikLogsFile = "log/traefik.log"
# Log level
#
# Optional
@ -39,6 +32,28 @@
[entryPoints.http]
address = ":80"
# Traefik logs
# Enabled by default and log to stdout
#
# Optional
#
# [traefikLog]
# Sets the filepath for the traefik log. If not specified, stdout will be used.
# Intermediate directories are created if necessary.
#
# Optional
# Default: os.Stdout
#
# filePath = "log/traefik.log"
# Format is either "json" or "common".
#
# Optional
# Default: "common"
#
# format = "common"
# Enable access logs
# By default it will write to stdout and produce logs in the textual
# Common Log Format (CLF), extended with additional fields.