Message196072
On configuring a logger with logging.basicConfig() and using logging.exception() the traceback is always written implicitly to the end. This makes it not possible to create a formation that writes something beyond the traceback. For example it could be something like that: logging.basicConfig(filename = '/tmp/python.log', format = '%(asctime)s\n%(traceback)s\nSome_text_or_LogRecords_after_the_traceback', datefmt = '%Y-%m-%d %H:%M:%S') |
|
Date |
User |
Action |
Args |
2013-08-24 11:16:56 | Sworddragon | set | recipients:
+ Sworddragon |
2013-08-24 11:16:56 | Sworddragon | set | messageid: <1377343016.83.0.299071692967.issue18824@psf.upfronthosting.co.za> |
2013-08-24 11:16:56 | Sworddragon | link | issue18824 messages |
2013-08-24 11:16:56 | Sworddragon | create | |
|