[Answered ]-Mod_python django logging problem

2👍

RotatingFileHandler is not designed to work in multiprocess system. Each process you have notice that file is too large and starts new log, so you get up to 5 new logs. It’s not as easy to implement it properly: you have to obtain interprocess lock before creating new file and inform each process to reopen it. You’d better use external (provided with your OS) rotation with server restart or setup single-process logging server.

Leave a comment