is it possible to generate logs with line no?

Asked by Amutha Sreenivasan

Hi ,

I am getting the logs like this..

[log] CLICK on L(1827,403)@S(0)[0,0 1920x1080]

[log] CLICK on L(429,162)@S(0)[0,0 1920x1080]

[log] CLICK on L(746,163)@S(0)[0,0 1920x1080]

[log] CLICK on L(677,185)@S(0)[0,0 1920x1080]

[log] CLICK on L(746,163)@S(0)[0,0 1920x1080]

is it possible to generate logs with some line no in the script file.

Then it would be easy to trace out if it fails in the middle..

Question information

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

not a feature yet.

But possible: at time of log, one has to look at the stack trace.

Nice idea, so I put it on the request list.

Revision history for this message
RaiMan (raimund-hocke) said :
#2

... but if it fails, you already now get the line number in the error printout

Revision history for this message
Amutha Sreenivasan (amuthasree) said :
#3

Thanks Raiman. Yes. While failing, I get the number with the error.