Closed fty4 closed 1 month ago
@fty4 Thanks for this PR :+1: . You're right, we missed it. I left small suggestion in order to display (and configure) it with severity order, like on Traefik Proxy documentation. Wdyt ?
Hi @mloiseleur just saw after I deployed my modified version that no log on level TRACE was printed.
After reviewing the traefik/traefik sourcecode I saw that not one logger.Trace()
was called - I guess the level is [never used](https://github.com/search?q=repo%3Atraefik%2Ftraefik%20logger.Trace()&type=code).
zerolog allows to specify that level - because of that it might be "allowed".
Knowing this we might just close this PR, right? Might better to remove the level from the main repository documentation?
I am fine with that - you can merge it! Also we get the correct order of the severity as you suggested.
What does this PR do?
Allow to specify log level
TRACE
which is a valid Traefik log level. see: https://doc.traefik.io/traefik/observability/logs/#levelMotivation
I tried to debug something and needed
TRACE
as log.level which was forbidden by this chart:More
make test
and all the tests passed