8๐
Iโve found this behavior when there are multiple precesses are running with your code.
Unfortunatelly no perfect option exists.
Some ideas, you can incorporate are:
- use WatchedFileHandler (new in 2.6) and rotate with external programs as logrotate
- use syslog or other log aggregating server
- use python log aggregation sentry โ this is especially useful with django as you can log not only log messages, but exceptions with full stacktrace and 404s.
๐คJerzyk
6๐
Also perhaps this is worth considering http://pypi.python.org/pypi/ConcurrentLogHandler/0.8.3
๐คkalium
- Django ORM group by, and find latest item of each group (window functions)
- Pytest and Django settings runtime changes
- Django form and i18n
0๐
Google turns up this answer:
Could it be that you have multiple processes running the logger? Maybe multiple apps logging to the same files?
๐คDimitry
Source:stackexchange.com