Standard logging

Suggestions and discussion of future versions
Post Reply
jools772
Member
Member
Posts: 22
Joined: Fri Oct 25, 2019 8:07 am

Standard logging

Post 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.
mhertz
Moderator
Moderator
Posts: 2182
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Standard logging

Post 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.
jools772
Member
Member
Posts: 22
Joined: Fri Oct 25, 2019 8:07 am

Re: Standard logging

Post by jools772 »

Nice! Thanks.
Post Reply