Message222185
> I don't see a reason to defer the formatting to the actual output of the messages (other than the current implementation of logging).
The current implementation of logging is like that for a reason, even though you may not see it - it defers doing work until it is needed (which improves throughput). This idiom is hardly uncommon.
If you don't want to delay formatting until output, you can always do
logger.debug("My object: %s" % myObject) |
|
Date |
User |
Action |
Args |
2014-07-03 14:20:52 | vinay.sajip | set | recipients:
+ vinay.sajip, r.david.murray, Jonas.Diemer |
2014-07-03 14:20:52 | vinay.sajip | set | messageid: <1404397252.62.0.369065170931.issue21912@psf.upfronthosting.co.za> |
2014-07-03 14:20:52 | vinay.sajip | link | issue21912 messages |
2014-07-03 14:20:52 | vinay.sajip | create | |
|