From 9e356e51be6dc52a9c229608cf0335a1b5f5664b Mon Sep 17 00:00:00 2001 From: VARUN Date: Tue, 7 Jan 2025 11:49:35 +0530 Subject: [PATCH] updated code --- skyonnweb/skyonnweb/settings.py | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) 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