[Zope-Coders] Wrapping lines in zLOG?

Guido van Rossum guido@python.org
Tue, 17 Sep 2002 09:49:18 -0400


> One of which would be, IMHO, the wrapping of tracebacks, which I
> certainly wouldn't want.

I only wrap the first line of the log message.  At least what's
usually the first line.  Toby Dickenson just mentioned that there are
\n and \t characters in some log messages; those would be included.

There are three parts to a log message: the part you normally see,
with the timestamp, severity, subsystem, and message; an optional
"detail" which is printed next on a line by itself; and an optional
traceback, which is printed last.  I've never seen the detail used,
and my code doesn't wrap it.  It also stays off the tracebacks.

--Guido van Rossum (home page: http://www.python.org/~guido/)