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:
parent
ce73e041ac
commit
5cad29679f
1 changed files with 28 additions and 0 deletions
|
@ -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"],
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue