sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #07936
Re: [Question #180346]: Timestamp in logfile
Question #180346 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/180346
Steen posted a new comment:
@Jason
yes it appends.
i have made this:
to start:
import logging
import os
#show all levels (INFO, WARNING, ERROR)
logger.setLevel(logging.INFO)
the use in the script:
logger.info('your pants are going to burn')
logger.warning('your pants are soaked in petrol')
logger.error('you are now burning')
at the end of script:
logger.removeHandler(hdlr)
logging.shutdown
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.