Suggestion for Event Log: Timestamps

Suggest, post, or discuss plugins for Deluge
Post Reply
infernus
New User
New User
Posts: 7
Joined: Tue Jun 24, 2008 4:41 pm

Suggestion for Event Log: Timestamps

Post by infernus »

I was looking at the event log today trying to figure out (I'm not really that great in python) how to implement some sort of timestamp at the beginning of each entry.

Maybe something like this:

Code: Select all

[13:01:05]  Tracker alert {event message: tracker: "http://open.tracker.thepiratebay.org:80/announce" timed out...
Is this as simple as it would be in C? If so, I would really love to see it added. Thanks alot.
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Suggestion for Event Log: Timestamps

Post by johnnyg »

there already is a timestamp in the actual logs, but not in the tab for some reason.
if you want to have the timestamp in the tab as well,
change line 227 of tab_log.py (found in the event logging plugin folder) from

Code: Select all

label.set_text(event_message)
to

Code: Select all

label.set_text(time.asctime(time.localtime()) + ", " + event_message)
P.S. python is easier than C ;)
loki
Moderator
Moderator
Posts: 787
Joined: Tue Dec 04, 2007 3:27 pm
Location: MI, USA

Re: Suggestion for Event Log: Timestamps

Post by loki »

So, suggestion to change it in source? I'd like to see a timestamp added in the window.
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Suggestion for Event Log: Timestamps

Post by johnnyg »

I've added it as ticket #323.
hopefully it'll get committed shortly (depending on how busy the devs are).
Post Reply