feat(settings): Add console logging

This commit is contained in:
Tom Hubrecht 2024-09-24 23:33:24 +02:00
parent 59fa740950
commit 91d5d68da3
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc

View file

@ -62,6 +62,23 @@ MIDDLEWARE = [
"allauth.account.middleware.AccountMiddleware",
]
###
# Logging configuration
LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"handlers": {
"console": {
"class": "logging.StreamHandler",
},
},
"root": {
"handlers": ["console"],
"level": credentials.get("LOG_LEVEL", "WARNING"),
},
}
###
# The main url configuration