← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #171666]: Save logs in a txt file

 

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

RaiMan posted a new comment:
@ fani

nl = "\n" # new line character
log = open("path-to-file.txt")
log.write("starting" + nl)
..........
if exists():
log.write ('correct' + nl)
if exists():
log.write ('error' + nl)
.........
log.write("ending" + nl)
log.close()

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