richibrics / IoTuring

Your Windows, Linux, macOS computer as MQTT and HomeAssistant integration

Home Page:https://pypi.org/project/IoTuring/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change folder for Logs like we did for configurations

richibrics opened this issue · comments

I wouldn't place them in configurations folders, so I still need to find the correct place.

Logs are currently saved in script folder and this isn't a great way to store them.

Also logrotation should be handled. IoTuring just creates new logs at each restart, old ones should be deleted.

Python built in logging library has some functions for this: https://docs.python.org/3/library/logging.handlers.html#timedrotatingfilehandler

Maybe we should change to this library from this custom logger?