Message222189
| Author |
vinay.sajip |
| Recipients |
Jonas.Diemer, r.david.murray, vinay.sajip |
| Date |
2014年07月03日.14:42:31 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1404398551.95.0.18554639658.issue21912@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> but it means that the string formatting is always done
Not if you use logger.isEnabledFor(level) as a guard to avoid unnecessary work :-)
> I "forked" logging and am catching exceptions during the string formatting
That might work with Jython and invalidated objects, but in the case of e.g. CPython (where the objects can't be invalidated/garbage collected as there is a reference to them in the LogRecord for the logged event) I don't see how that approach is generally applicable. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年07月03日 14:42:31 | vinay.sajip | set | recipients:
+ vinay.sajip, r.david.murray, Jonas.Diemer |
| 2014年07月03日 14:42:31 | vinay.sajip | set | messageid: <1404398551.95.0.18554639658.issue21912@psf.upfronthosting.co.za> |
| 2014年07月03日 14:42:31 | vinay.sajip | link | issue21912 messages |
| 2014年07月03日 14:42:31 | vinay.sajip | create |
|