Docs on logging should emphasize that file logging is not multiprocess save
|Reported by:||Piotr Czachur||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
python logging facility is not multiprocess save:
"Although logging is thread-safe, and logging to a single file from multiple threads in a single process is supported, logging to a single file from multiple processes is not supported [...]" (http://docs.python.org/library/logging.html#logging-to-a-single-file-from-multiple-processes)
"Not supported" means your logs from multiple process can mix in chunks due to buffering issues (I tested it for long messages ~5k - their chunks just got mixed)
Django popular deployment is mod_wsgi/multiprocess so it can be the issue.