﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
14324	Django not rotating logs	mikewash	nobody	"System Information:
Python 2.5.2
Apache 2.2
Windows XP

I was trying to rotate logs in django but it kept delivering this error [Windows Error 32] when running it in the development environment (python manage.py runserver). I was curious if there is some way to rotate logs to work in sync with the Django Framework.

Also I placed the code in the settings.py file.

Here is the code

{{{ 
logger = logging.getLogger("""")
logger.setLevel(logging.DEBUG)
handler = logging.handlers.RotatingFileHandler(LOG_FILE, maxBytes=20, backupCount=5)
handler.setFormatter(logging.Formatter(LOG_FORMAT))
logger.addHandler(handler)
}}}"		closed	Core (Other)	1.0		invalid	rotating logs		Unreviewed	0	0	0	0	0	0
