feat: added loggers for API errors
Added three loggers:
- A general one logging every info to the console
- A logger for warnings and errors that write messages to the
django.log
file - A logger for errors that write messages to the
error.log
file
All log files have a time rotation and at midnight a new file will be created. At most 10 backups will be kept so if more would be created, the oldest one is deleted. See this documentation for more detail - https://docs.python.org/3/library/logging.handlers.html#timedrotatingfilehandler
for documentation about django loggers see - https://docs.djangoproject.com/en/2.2/topics/logging/
Edited by Baptiste Rousseau