1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 14:54:22 +00:00

🔧 Configure basic console logging functionality

This commit is contained in:
Steffo 2021-04-07 20:37:02 +02:00
parent ce73e041ac
commit 5cad29679f

View file

@ -141,3 +141,31 @@ REST_FRAMEWORK = {
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
]
}
# Logging
# https://docs.djangoproject.com/en/3.1/ref/settings/#std:setting-LOGGING
LOGGING = {
"version": 1,
"handlers": {
"console": {
"class": "logging.StreamHandler",
"level": "DEBUG",
"stream": "ext://sys.stdout",
},
},
"loggers": {
"sophon": {
"level": "DEBUG",
},
"django": {
"level": "INFO",
},
"rest_framework": {
"level": "INFO",
},
},
"root": {
"handlers": ["console"],
}
}