crowdsec-bouncer-traefik-plugin
crowdsec-bouncer-traefik-plugin copied to clipboard
[FEATURE] Allow specifying a path/location for the logs
Is your feature request related to a problem? Please describe. 🐛 It's not really a problem, more something I quite like, and that is having traefik put its logs in a file in a specific place on my machine so I don't have to look into the docker logs and instead can view the file.
Describe the solution you'd like ✨
Currently, it's only possible to define what type of level of log should be logged, be it INFO, DEBUG, etc, but not where. It's always only stdout and stderror. I would love to see a way of configuring the plugin to instead log into a file to a path you can define. For example /var/log/traefik-crowdsec-bouncer.txt.
Additional context
Hi,
I'll look soon if the possibility to write logs is allowed, and after discussion we agree on the idea to implement it.