tiredofit / docker-traefik-cloudflare-companion

Automatically Create CNAME records for containers served by Traefik
MIT License
384 stars 64 forks source link

Use pythons logging module instead of print #34

Closed mbjurstrom closed 3 years ago

mbjurstrom commented 3 years ago

This make the code cleaner and more pythonic. Currently it only use a streamHandler to log to the console with the format LOGLEVEL MESSAGE e.g. INFO Test Message But it can easily be changed to a file handler or any other logging handler. And the logformat can easily be modified/changed as well.

Discussed in and Fixes: https://github.com/tiredofit/docker-traefik-cloudflare-companion/issues/32