Message243182
| Author |
berker.peksag |
| Recipients |
berker.peksag, ezio.melotti, michael.foord, rbcollins |
| Date |
2015年05月14日.12:03:49 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1431605029.99.0.444835301939.issue24193@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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' |
|
History
|
|---|
| 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 |
|