Message243182
It would be useful if we could change the logging format of assertLogs when we use it:
with self.assertLogs('foo', level='INFO', format='%(message)s') as cm:
logging.getLogger('foo').info('first message')
self.assertEqual(cm.output, ['first message'])
Or maybe with a class attribute like maxDiff:
logFormat = '%(message)s' |
|
Date |
User |
Action |
Args |
2015-05-14 12:03:50 | berker.peksag | set | recipients:
+ berker.peksag, rbcollins, ezio.melotti, michael.foord |
2015-05-14 12:03:49 | berker.peksag | set | messageid: <1431605029.99.0.444835301939.issue24193@psf.upfronthosting.co.za> |
2015-05-14 12:03:49 | berker.peksag | link | issue24193 messages |
2015-05-14 12:03:49 | berker.peksag | create | |
|