RotatingFileHandler in Python 2.3.5
Vinay Sajip
vinay_sajip at yahoo.co.uk
Tue May 17 02:02:35 EDT 2005
new pip <newpip <at> gmail.com> writes:
>
> Is the RotatingFileHandler (from the logging module) available in
> Python 2.3.5? I'm getting a "AttributeError: 'module' object has no
> attribute 'RotatingFileHandler'" error message when trying to use it.
The handler is in the logging.handlers module, not in the logging module
itself. If you are using a configuration file,
use "handlers.RotatingFileHandler" rather than just "RotatingFileHandler".
Vinay Sajip
More information about the Python-list
mailing list