From 20ace0e8dc6e13a78680746850e2e47831984df2 Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Tue, 1 Oct 2024 18:08:31 +0200 Subject: [PATCH] feat(sample_project): enable debug logging Closes: #1252 --- sample_project/settings.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/sample_project/settings.py b/sample_project/settings.py index b88261bd7..b67cd4454 100644 --- a/sample_project/settings.py +++ b/sample_project/settings.py @@ -114,3 +114,23 @@ SPECTACULAR_SETTINGS = { "DEFAULT_GENERATOR_CLASS": "apis_core.generic.generators.CustomSchemaGenerator" } + +LOGGING = { + "version": 1, + "disable_existing_loggers": False, + "formatters": { + "verbose": { + "format": "%(asctime)s %(name)-6s %(levelname)-8s %(message)s", + }, + }, + "handlers": { + "console": { + "class": "logging.StreamHandler", + "formatter": "verbose", + }, + }, + "root": { + "handlers": ["console"], + "level": "DEBUG", + }, +}