← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #610943]: Logging sikuli errors to a separate log file

 

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

stewazy posted a new comment:
Tank you @RaiMan You are a God among men :D

here is my solution for logging error

try:
    #your test

except:
    var = traceback.format_exc()
   
    file = open("C:\\Sikuli\\log.log", 'a')
    file.write(var)
    file.close()

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