eko / pihole-exporter

A Prometheus exporter for PI-Hole's Raspberry PI ad blocker
MIT License
924 stars 106 forks source link

[Feature] Loglevel command line argument #232

Open ToMe25 opened 4 months ago

ToMe25 commented 4 months ago

It would be nice to be able to use a command line argument to set which log levels should be printed to the log, and which ones shouldn't.

As it is this exporter writes a lot of rarely useful information to the system log.

A --loglevel flag to set whether INFO level log messages should be printed would be a simple solution to this, and is something many programs already support.

I am aware that this was already mentioned in https://github.com/eko/pihole-exporter/issues/143#issuecomment-1528018727, but since that issue itself was about something else I chose to create a new issue for it regardless.

This exporter is currently the program writing the most log messages to my system log, and it just makes the system log needlessly hard to read.