Enabling logging to console

This commit is contained in:
2020-07-19 14:28:33 +00:00
parent 9ce2feb002
commit f2f288a447

View File

@@ -12,6 +12,23 @@ https://docs.djangoproject.com/en/3.0/ref/settings/
import os import os
#Prints and logs are written to console
#TODO: Change before release
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console': {
'class': 'logging.StreamHandler',
},
},
'root': {
'handlers': ['console'],
'level': 'DEBUG',
},
}
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))