Standard logging

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

Standard logging

Postby jools772 » Sat Oct 31, 2020 3:17 pm

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
Compulsive Poster
Compulsive Poster
Posts: 865
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Standard logging

Postby mhertz » Sat Oct 31, 2020 7:25 pm

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: 20
Joined: Fri Oct 25, 2019 8:07 am

Re: Standard logging

Postby jools772 » Sat Oct 31, 2020 9:46 pm

Nice! Thanks.


Return to “Development”

Who is online

Users browsing this forum: No registered users and 10 guests