Write Sikuli logging to file --- possible since version 1.0.1

Asked by Eugene S

**** since 1.0.1: see https://github.com/RaiMan/SikuliX-IDE/wiki/Release-Notes-IDE
----------------------------------------------------------------------------------------------

Hi RaiMan,

I have asked you the below question few weeks ago and have received an answer.
https://answers.launchpad.net/sikuli/+question/233589

However can I request such functionality in next Skuli versions?
I mean the option to write all Sikuli [log] lines to file. Including things like highlight, keypress, etc.. info.

Thanks!
Eugene

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

Already possible with 1.0.1:

commandline option -f [filename]

You might produce user debug messages using Debug.user(<message>) even with time stamps and let them be written into a separate log file with option -u [filename]

see: https://github.com/RaiMan/SikuliX-IDE/wiki/Release-Notes-IDE

Revision history for this message
Eugene S (shragovich) said :
#2

Oh, that's great! Thanks Raiman.
Is there a way to append these lines to a file rather than creating a new one?

The thing is that I have my own logging mechanism which writes to a trace file. I'd like the Sikuli logs be visible as a part of the same log.

Eugene

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

Exactly that is what is not yet possible, sorry.

You might combine the logfiles afterwords based on the time stamp.

Revision history for this message
Eugene S (shragovich) said :
#4

Thanks for the info.

Are there any plans to make it possible in the future? (Just wondering :) )

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

The current plan is, to use some standard Java logger instead of Sikuli's own Debug class.

So you could mix things easily, when you use the same logger ;-)

Version 1.1 earliest.

Can you help with this problem?

Provide an answer of your own, or ask Eugene S for more information if necessary.

To post a message you must log in.