Jean-Michel Pichavant wrote:
Hi python fellows,
I'm looking to do the following :
import logging
l = logging.getLogger('aHeader')
l.handlers = []
l.addHandler(logging.StreamHandler())
l.handlers[-1].setFormatter(logging.Formatter("%(asctime)s - %(name)s
- %(message)s"))
l.error('1st line\n2n
Hi python fellows,
I'm looking to do the following :
import logging
l = logging.getLogger('aHeader')
l.handlers = []
l.addHandler(logging.StreamHandler())
l.handlers[-1].setFormatter(logging.Formatter("%(asctime)s - %(name)s -
%(message)s"))
l.error('1st line\n2nd line')
output:
2010-11-04 1