refractor structure project and add user endpoint

This commit is contained in:
2026-01-08 15:05:23 +03:00
parent 423ce8bc62
commit 8e0131451d
25 changed files with 329 additions and 218 deletions
+38
View File
@@ -0,0 +1,38 @@
from logging.config import dictConfig
from app.core.config import settings
LOGGING_CONFIG = {
"version": 1,
"disable_existing_loggers": False,
"formatters": {
"colored": {
"()": "colorlog.ColoredFormatter",
"format": "[%(asctime)s] %(log_color)s%(levelname)s%(reset)s:"
" (%(module)s) %(message)s",
"log_colors": {
"DEBUG": "cyan",
"INFO": "green",
"WARNING": "yellow",
"ERROR": "red",
"CRITICAL": "purple",
},
},
},
"handlers": {
"console": {
"class": "logging.StreamHandler",
"formatter": "colored",
},
},
"root": {
"level": settings.LOG_LEVEL,
"handlers": ["console"],
},
}
def set_logging():
dictConfig(LOGGING_CONFIG)