Logging multiple lines

Mike Kazantsev mk.fraggod at gmail.com
Wed Jun 17 05:24:13 CEST 2009


On Tue, 16 Jun 2009 22:22:31 -0400
Nikolaus Rath <Nikolaus at rath.org> wrote:

> How do you usually handle multi-line messages? Do you avoid them
> completely (and therefore also the exception logging facilities
> provided by logging)? Or is it possible to tweak the formatter so
> that it inserts the prefix at the beginning of every line? 

I'd log exception name and timestamp (or id) only, pushing the full
message with the same id to another log or facility (like mail it to
some dedicated bug-report box).

-- 
Mike Kazantsev // fraggod.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 205 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20090617/60319b11/attachment.pgp>


More information about the Python-list mailing list