Re: Logging multiple lines

2009-06-16 Thread Lie Ryan
Nikolaus Rath wrote: > Hi, > > Are there any best practices for handling multi-line log messages? > > For example, the program, > > main = logging.getLogger() > handler = logging.StreamHandler() > handler.setFormatter(logging.Formatter('%(asctime)s %(levelname)s > %(message)s')) >

Re: Logging multiple lines

2009-06-16 Thread Mike Kazantsev
On Tue, 16 Jun 2009 22:22:31 -0400 Nikolaus Rath 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 begi