I never got a response back from this, but I'm noticing even more odd behavior, see inline:<br><br><div class="gmail_quote">On Wed, Sep 30, 2009 at 4:38 PM, Max Lynch <span dir="ltr"><<a href="mailto:ihasmax@gmail.com">ihasmax@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi.<br>I have a RotatingFileHandler for my logging system.  I have it set to rotate once the file becomes 5MB in size.  Here is the conf line I have in my logging config file:<br>
<br>[handler_fileHandlerDebugNoRequest]<br>
class=handlers.RotatingFileHandler<br>formatter=formatterNoRequest<br>args=('/web/logs/gobuzz_debug.log', 'a', 5242880, 8)<br><br>However, my logging folder contains these files:<br>-rw-r--r-- 1 www-data www-data 566K Sep 30 16:35 gobuzz_debug.log<br>

-rw-r--r-- 1 www-data www-data 4.2M Sep 30 16:35 gobuzz_debug.log.1<br>-rw-r--r-- 1 www-data www-data 572K Sep 30 16:36 gobuzz_debug.log.2<br>-rw-r--r-- 1 www-data www-data 558K Sep 30 16:35 gobuzz_debug.log.3<br>-rw-r--r-- 1 www-data www-data 3.7K Sep 29 20:52 gobuzz_debug.log.4<br>

-rw-r--r-- 1 www-data www-data 3.7K Sep 29 20:52 gobuzz_debug.log.5<br>-rw-r--r-- 1 www-data www-data 566K Sep 30 16:36 gobuzz_debug.log.6<br>-rw-r--r-- 1 www-data www-data 1.6M Sep 30 16:36 gobuzz_debug.log.7<br>-rw-r--r-- 1 www-data www-data  45K Sep 29 20:50 gobuzz_debug.log.8<br>

-rwxrwxrwx 1 www-data www-data 691K Sep 28 09:39 gobuzz_error.log<br><br>Clearly, the files are rotating far before they hit 5MB.  The consequence of such being that I'm losing a lot of log data.  What gives?  Am I doing something wrong?  <br>
</blockquote><div><br>For some reason, my Apache2/mod_wsgi/django system is writing to all of
the separate rotated files at once.  I can't detect a pattern, but some
times, for example, logging data goes into "gobuzz_debug.log.8" and some times they go
into "gobuzz_debug.log.5", rather than only going to gobuzz_debug.log
and rotating after 5MB.<br><br>Does anyone have any ideas? Here are my formatter sections if it matters:<br>
[formatter_formatterNoRequest]<br>
format=%(asctime)s - %(mymodule)s:%(mylineno)d - %(levelname)s - %(message)s<br>
datefmt=%a, %d %b %Y %I:%M:%S %p<br>
<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks,<br><font color="#888888">Max<br><br><br><br>
</font></blockquote></div><br>