logger module : Question about log message format
jjkk73 at gmail.com
Fri Sep 4 13:34:32 CEST 2009
I've created a logger like this:
LOG_FILENAME = 'test.txt'
logger1 = logging.getLogger('myLogger1')
logger1.info('message from logger1')
and was hoping to get log messages in this format in my log file:
:INFO:myLogger1:message from logger1
instead I just get a plain message like this:
message from logger1
Do you know why?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list