richibrics / IoTuring

Your Windows, Linux, macOS computer as MQTT and HomeAssistant integration
https://pypi.org/project/IoTuring/
GNU General Public License v3.0
70 stars 6 forks source link

Change folder for Logs like we did for configurations #58

Closed richibrics closed 4 months ago

richibrics commented 1 year ago

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.

infeeeee commented 1 year ago

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?