postgreSQL :
1 |
/var/log/postgresql/postgresql-10-main.log |
Nginx:
1 |
var/log/nginx/access.log |
Django:
Add this first to settings.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'filters': { 'require_debug_false': { '()': 'django.utils.log.RequireDebugFalse' } }, 'handlers': { 'applogfile': { 'level':'DEBUG', 'class':'logging.handlers.RotatingFileHandler', 'filename': '/var/log/django.log', 'maxBytes': 1024*1024*15, # 15MB 'backupCount': 10, } }, 'loggers': { 'django.request': { 'handlers': ['applogfile'], 'level': 'ERROR', 'propagate': True, }, } } |
then check here:
1 |
'/var/log/django.log |
Gunicorn:
1 |
/var/log/gunicorn_access.log |
Use the command cat or tail to see the output.