← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #288469]: logging stop working on 3rd run

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
it is by design of the Python logging feature, that it might lead to such problems in the case of running scripts in the IDE.
The Python logging feature in the simple usage that you have, is designed to be used in a run situation, where the Python interpreter is started for this one run and closed after the script ends. 
This is not the case in the IDE, where the same interpreter instance executes all scriptruns.

Either edit your script in the IDE, save it and then run it from command line in parallel or use the SikuliX user log feature instead:
http://sikulix-2014.readthedocs.org/en/latest/scripting.html#writing-and-redirecting-log-and-debug-messages

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.