← Back to team overview

sikuli-driver team mailing list archive

[Question #180346]: Timestamp in logfile

 

New question #180346 on Sikuli:
https://answers.launchpad.net/sikuli/+question/180346

import logging
logging.__init__(0)
logging.basicConfig(filename="C:\\Users\\user\\Desktop\\Iconlogfile.log", level=logging.INFO)

and then use:
logging.info('device picked and ready for test')
everytime i have to print to log file.

everything works!....great...:0)

But i need timestamp of every post
so instead of:
INFO:root:DB8 MKII picked and ready for test
INFO:root:software found

i would like:
11:10:10:DB8 MKII picked and ready for test
11.10.20:software found

and so on?

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