diff --git a/skyonnweb/skyonnweb/settings.py b/skyonnweb/skyonnweb/settings.py index eab7435..9a0988d 100644 --- a/skyonnweb/skyonnweb/settings.py +++ b/skyonnweb/skyonnweb/settings.py @@ -153,4 +153,24 @@ EMAIL_HOST_USER = 'subramanyajithendra@gmail.com' EMAIL_HOST_PASSWORD = 'grdwevagtfmfqosb' TIME_ZONE = 'Asia/Kolkata' -USE_TZ = True \ No newline at end of file +USE_TZ = True + + +LOGGING = { + 'version': 1, + 'disable_existing_loggers': False, + 'handlers': { + 'file': { + 'level': 'ERROR', + 'class': 'logging.FileHandler', + 'filename': '/path/to/your/logs/django.log', + }, + }, + 'loggers': { + 'django': { + 'handlers': ['file'], + 'level': 'ERROR', + 'propagate': True, + }, + }, +} \ No newline at end of file