This is an open ended question about logging when you have different django processes. How can I get the output of different django processes in the same log file? How would you approach this issue?
Now to my current setup. I have a django webapp running on webfaction. In django, logging is going to the console stdout
'console': {
'class': 'logging.StreamHandler',
'formatter': 'simple',
},
In httpd.conf
it is configured to go to
ErrorLog /home/elmartus/logs/user/error_myapp.log
Then I have some jobs that get run from cron like this ./manage.py runjobs hourly
that currently output to the console.
So how can I get the output of both the normal output of django and those command line processes into the same file? It would also be interesting to know how to do this with celery tasks and any other tasks that run on a separate django process.
Thanks !