where's my django application log file?

February 9, 2016 1.2k views
Django Monitoring Nginx API

For the one-click appplications.. where are the django application log files? I can only see nginx files but I can not see application level exceptions/errors there..

1 Answer

The Django One-Click application employs Gunicorn and Upstart. Application level logging can be found in /var/log/upstart/gunicorn.log By default, Gunicorn logs to stderr and Upstart will collect output to stderr/stdout in /var/log/upstart/$JOB_NAME.log This can be adjusted by adding --access-logfile path/to/file to Gunicorn's options in /etc/init/gunicorn.conf or by implementing logging directly in your Django application.

Have another answer? Share your knowledge.