Timestamp for logs output

Asked by Asadullah Baig

This is output of the log. I would like to append timestamp to each line
---- Current Output ---
[info] Sikuli vision engine loaded.
[info] Windows utilities loaded.
[info] VDictProxy loaded.
[log] App.open notepad(3552)
It passed

------ Desired Output ----
11:30:01 [info] Sikuli vision engine loaded.
11:30:01 [info] Windows utilities loaded.
11:30:01 [info] VDictProxy loaded.
11:30:02 [log] App.open notepad(3552)
11:30:03 It passed

Also, can we can calculate the time difference between 2 actions:
-- Example:
11:30:01 [log] CLICK on (681,478)
11:30:02 [log] CLICK on (678,525)
Duration - 1 sec

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

--- I would like to append timestamp to each line
Not possible with the current version (has to be fixed on the Java level (class Debug))
Feel free to post a request bug.

--- can we can calculate the time difference between 2 actions:
start = time.time()
# somer actions
print time.time()-start # in seconds

Can you help with this problem?

Provide an answer of your own, or ask Asadullah Baig for more information if necessary.

To post a message you must log in.