Page 1 of 1

Suggestion for Event Log: Timestamps

Posted: Thu Jul 03, 2008 8:32 pm
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.

Re: Suggestion for Event Log: Timestamps

Posted: Fri Jul 04, 2008 4:09 am
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 ;)

Re: Suggestion for Event Log: Timestamps

Posted: Fri Jul 04, 2008 11:45 pm
by loki
So, suggestion to change it in source? I'd like to see a timestamp added in the window.

Re: Suggestion for Event Log: Timestamps

Posted: Sat Jul 05, 2008 11:45 am
by johnnyg
I've added it as ticket #323.
hopefully it'll get committed shortly (depending on how busy the devs are).