Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   logging module -> Miss messages if don't flush constantly? How set toflush constantly? (http://www.velocityreviews.com/forums/t731472-logging-module-miss-messages-if-dont-flush-constantly-how-set-toflush-constantly.html)

Chris Seberino 08-21-2010 06:07 PM

logging module -> Miss messages if don't flush constantly? How set toflush constantly?
 
It looks like I can miss some logging messages if I don't flush after
every one....is that true?

This is an issue when program crashes so that logger didn't get a
chance to print everything.

Is there some way to set logging to constantly flush?

Peter Otten 08-21-2010 06:31 PM

Re: logging module -> Miss messages if don't flush constantly? How set to flush constantly?
 
Chris Seberino wrote:

> It looks like I can miss some logging messages if I don't flush after
> every one....is that true?


As far as I can tell from the 2.6 source the StreamHandler does flush after
each record.

Peter



All times are GMT. The time now is 03:04 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57