If you search "traefik log file path setting" in Google. The following 2 URLs are top.
https://doc.traefik.io/traefik/observability/logs/
https://doc.traefik.io/traefik/v1.7/configuration/logs/
I was confused. Because first URL shows the following example.
[log]
filePath="/MyLogs/traefik.log"
format = "json"
level = "DEBUG"
And second URL shows the following example. But it doesn't work with Traefik version 2.2
logLevel = "DEBUG"
[traefikLog]
filePath="/MyLogs//traefikLog.log"
Here is my traefik.toml for Traefik version 2.2. I found the reason of 404.
[log]
filePath="/MyLogs/traefik.log"
format = "json"
level = "DEBUG"
[accessLog]
filePath="/MyLogs//traefikAccess.log"
No comments:
Post a Comment