Message332103
The following script:
#/usr/bin/env python3
import logging
logger = logging.getLogger(name='main')
logger.setLevel(logging.INFO)
logger.error('XXX')
logging.error('ZZZ')
logger.error('XXX')
outputs
XXX
ERROR:root:ZZZ
ERROR:main:XXX
That is counter-intuitive: two logger.error('XXX') operators should output the same string, not two different strings "XXX" and "ERROR:main:XXX".
Please discuss how to make Python behave as a user could expect. |
|
Date |
User |
Action |
Args |
2018-12-19 00:09:09 | porton | set | recipients:
+ porton |
2018-12-19 00:09:09 | porton | set | messageid: <1545178149.93.0.788709270274.issue35530@psf.upfronthosting.co.za> |
2018-12-19 00:09:09 | porton | link | issue35530 messages |
2018-12-19 00:09:09 | porton | create | |
|