#14625: Docs on logging should emphasize that file logging is not multiprocess save ---------------------------+------------------------------------------------ Reporter: zimnyx | Owner: nobody Status: new | Milestone: Component: Documentation | Version: SVN Keywords: | Stage: Unreviewed Has_patch: 0 | ---------------------------+------------------------------------------------ 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. -- Ticket URL: <http://code.djangoproject.com/ticket/14625> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
