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

🔧 Configure basic console logging functionality

This commit is contained in:
Steffo 2021-04-07 20:37:02 +02:00
parent 2eb97395ba
commit e92466c432
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -141,3 +141,31 @@ REST_FRAMEWORK = {
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly' '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"],
}
}