Page 1 of 1

Standard logging

Posted: Sat Oct 31, 2020 3:17 pm
by jools772
Sorry if this has already been asked, but I'd like to have standard logging format. The current log only has time and is erased when app restarts. Would like to have date time at least in the log messages.

Re: Standard logging

Posted: Sat Oct 31, 2020 7:25 pm
by mhertz
I just checked the code, and for adding date then add e.g. '%Y-%m-%d ' infront of the time operators in line 51's datefmt var of '/usr/lib/python3.8/site-packages/deluge/log.py'.

For appending log, then noticed there where logrotation availability defined, but no code-changes is necesarry, as this feature was added in deluge 2.x together with a '--logrotate' switch.

Re: Standard logging

Posted: Sat Oct 31, 2020 9:46 pm
by jools772
Nice! Thanks.