<DIV>the fix was to specify handler.RotatingFileHandler</DIV>  <DIV> </DIV>  <DIV>does RotatingFileHandler work with Windows XP? <BR><BR><B><I>john peter <neuzhoundxx@yahoo.com></I></B> wrote:</DIV>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">  <DIV id=RTEContent>Hi!</DIV>  <DIV> </DIV>  <DIV>I have the following logging.conf :</DIV>  <DIV>[loggers]<BR>keys=root</DIV>  <DIV> </DIV>  <DIV>[handlers]<BR>keys=roth</DIV>  <DIV> </DIV>  <DIV>[formatters]<BR>keys=simpleFormatter</DIV>  <DIV> </DIV>  <DIV>[logger_root]<BR>level=INFO<BR>handlers=roth</DIV>  <DIV> </DIV>  <DIV>[handler_roth]<BR>class=RotatingFileHandler<BR>level=INFO<BR>formatter=simpleFormatter<BR>args=('adssim.log','w', 200, 4)</DIV>  <DIV> </DIV>  <DIV>[formatter_simpleFormatter]<BR>format=%(asctime)s - %(message)s<BR>datefmt=</DIV>  <DIV> </DIV>  <DIV>and sampleLogging.py script:</DIV>  <DIV><FONT size=2>  <DIV>import
 logging</DIV>  <DIV>import logging.config</DIV>  <DIV>logging.config.fileConfig("logging.conf")</DIV>  <DIV>logger = logging.getLogger("root")</DIV>  <DIV>for i in xrange(0, 5000):</DIV>  <DIV>logger.debug("debug message %s" % i)</DIV>  <DIV>logger.info("info message %s" % i)</DIV>  <DIV>logger.warn("warn! message %s" % i)</DIV>  <DIV>logger.error("error message %s" % i)</DIV>  <DIV>logger.critical("critical message %s" % i)</DIV>  <DIV> </DIV>  <DIV>for some reason, i keep getting the following error message:</DIV>  <DIV>C:\adssim1>python sampleLogging.py<BR>Traceback (most recent call last):<BR>  File "C:\Python24\lib\logging\config.py", line 157, in fileConfig<BR>    log.addHandler(handlers[hand])<BR>KeyError: 'roth'<BR>No handlers could be found for logger "root"</DIV>  <DIV> </DIV>  <DIV>when i did a help(logging) on the logging module, i don't see RotatingFileHandler.</DIV>  <DIV>Could somebody please help? Thanks!</DIV></FONT></DIV>  <div> 
 <HR SIZE=1>  <BR>What are the most popular cars? Find out at <A href="http://us.rd.yahoo.com/evt=38382/_ylc=X3oDMTEzNWFva2Y2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDMmF1dG9z/*http://autos.yahoo.com/newcars/popular/thisweek.html">Yahoo! Autos</A> -- <BR>http://mail.python.org/mailman/listinfo/python-list</BLOCKQUOTE>  <DIV><BR></DIV><p>
                <hr size=1> <a href="http://us.rd.yahoo.com/evt=38381/ ylc=X3oDMTEzcGlrdGY5BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDMWF1dG9z/*http://autos.yahoo.com/index.html ">Yahoo! Autos</a>. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.