[Zope-Coders] Wrapping lines in zLOG?

Chris McDonough chrism@zope.com
Tue, 17 Sep 2002 00:22:30 -0400


I liked the wrapped form.  There aren't any logfile parsers that I
know of that depend on the format of zLOG, so I can't think of any
downsides.  I'd hate to think that we can't change the format in any
way due to "backwards compatibility" or something.

- C

----- Original Message -----
From: "Guido van Rossum" <guido@python.org>
To: <zope-coders@zope.org>
Sent: Monday, September 16, 2002 11:40 PM
Subject: [Zope-Coders] Wrapping lines in zLOG?


> I've had the, um, pleasure of having to stare at log files
generated
> by zLOG a lot lately.  I really hate to look at long lines that
are
> wrapped without respect for word boundaries, and I equally hate
having
> to stretch my Emacs window to view files with such long lines.
>
> So I added a text wrapping feature to zLOG/MinimalLogger.py.  It
uses
> the textwrap module which is available only in CVS Python (aka
Python
> 2.3).  With wrapping, the log file looks like this:
>
> ------
> 2002-09-16T23:36:33 INFO(0) testZEO setUp()
>                     ZEO.tests.testZEO.UnixConnectionTests.check666
> ------
> 2002-09-16T23:36:33 INFO(0) StorageServer:3529 StorageServer
(pid=3538) created
>                     RW with storages: 1:RW
> ------
> 2002-09-16T23:36:33 INFO(0) ClientStorage:3529 ClientStorage
(pid=3529) created
>                     RW/normal for storage: '1'
> ------
>
> (Without wrapping, it looked like this:
>
> ------
> 2002-09-16T23:36:33 INFO(0) testZEO setUp()
ZEO.tests.testZEO.UnixConnectionTests.check666
> ------
> 2002-09-16T23:36:33 INFO(0) StorageServer:3529 StorageServer
(pid=3538) created RW with storages: 1:RW
> ------
> 2002-09-16T23:36:33 INFO(0) ClientStorage:3529 ClientStorage
(pid=3529) created RW/normal for storage: '1'
> ------
>
> )
>
> But there are also downsides to the wrapping (I'm sure you can
think
> of some).
>
> All in all, do people prefer the wrapped or the unwrapped form?
>
> --Guido van Rossum (home page: http://www.python.org/~guido/)
>
> _______________________________________________
> Zope-Coders mailing list
> Zope-Coders@zope.org
> http://lists.zope.org/mailman/listinfo/zope-coders
>