Skip to content

Commit

Permalink
feat: added logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hrideshmg committed Oct 3, 2024
1 parent c708ce7 commit d4e963e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions attendence_tracker/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,18 @@
},
}
}

LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"handlers": {
"file": {
"class": "logging.FileHandler",
"filename": "/var/log/django.log",
},
},
"root": {
"handlers": ["file"],
"level": "WARNING",
},
}

0 comments on commit d4e963e

Please sign in to comment.