This commit is contained in:
SG
2025-06-17 16:22:47 +03:00
parent 4ea54eaa91
commit 326e5c5edd
7 changed files with 77 additions and 51 deletions

View File

@@ -1,12 +1,12 @@
import logging, sys
from config import Config
from config import config
# Logging config section
LOG_TO = sys.stdout
LOG_LEVEL = logging.INFO
logger = logging.getLogger(Config.APP_NAME)
logger = logging.getLogger(config.app_name)
logger.setLevel(LOG_LEVEL)
stdout_handler = logging.StreamHandler(LOG_TO)
stdout_handler.setLevel(LOG_LEVEL)