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