← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #241257]: How to save sikuli logs into an external file

 

Question #241257 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/241257

    Status: Open => Answered

RaiMan proposed the following answer:
I just realised, that in the current implementation, the logs from
Sikuli and the user logs go to different files if logging to file is
switched on.

So the only possibility, to solve your problem currently is to just log
to sys-out and redirect the output to a file. For this you have to run
your app from command line.

the simplest usage: 
Debug.user("some message");

or adding some variables
String theImage = "some-image.png"
s.click(theImage)
Debug.user("we clicked %s at %s", theImage, s.getLastMatch())

the command line
java -jar myapp.jar >log.txt

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.