IDE: crashes on rerun when using logging module
I am developing a test infrastructure and want a library to setup logging to a file.
In Sikuli, I created a script with the code below. Every time I run it, the specified log file
gets updated, but the Sikuli IDE goes away.
Am I doing something wrong, or is this a bug?
# Module to set up logging and reporting
import os
import logging
TestLog = 0
def setupLogging(path, debug = 0):
global TestLog
if debug:
levelLog = logging.DEBUG
else:
levelLog = logging.INFO
logging.
TestLog = logging.getLogger()
if __name__ == "__main__":
setupLogging(
TestLog.
TestLog.
TestLog.info("Test Info Log")
TestLog.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: