crowdsec-bouncer-traefik-plugin icon indicating copy to clipboard operation
crowdsec-bouncer-traefik-plugin copied to clipboard

[FEATURE] Allow specifying a path/location for the logs

Open SmollClover opened this issue 10 months ago • 1 comments

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

SmollClover avatar Jan 22 '25 12:01 SmollClover

Hi,

I'll look soon if the possibility to write logs is allowed, and after discussion we agree on the idea to implement it.

mathieuHa avatar Feb 09 '25 19:02 mathieuHa