Logs
Viewing system logs
The system produces two sets of logs:
Application (django) logs
Django emits operational logs to stdout and can be viewed with Docker or via dokku.
To view a snapshot of recent logs with dokku, run:
To view a continuous stream of logs, run:
You can view logs for a particular process (web
or tasks
), run:
Viewing logs using docker
The website processes are normal docker containers. You can view the docker logs using standard docker commands, for example:
Find the ID of the docker container you want to check the logs for:
View the logs for that container
Nginx access logs
Nginx writes access logs for all requests to /var/log/nginx/APP-access.log
. View them with a command such as:
These logs are rotated according to your installed nginx log rotation configuration.
Nginx error logs
Nginx writes error logs to /var/log/nginx/APP-error.log
. View them with a command such as:
These logs are rotated according to your installed nginx log rotation configuration.
Last updated