I’m trying to write a simple logger in Jython, and I can’t seem to find any working examples online.
I have checked http://www.jython.org/docs/library/logging.html but the code doesn’t seem to work for me.
I just want to have a simple loop that logs a string with a timestamp and a message (log number/count) to a log file every thirty seconds. I am doing this in Windows using Sikuli.
Example of log message:
2012-04-26 13:25:51 message number 75
Can anyone help me out.
Thanks in advance,
Marwan
PS – I have never used Jython before.
For such a simple thing you can write simple routine: