Consolidated constants that are duplicated in various constant files. Implemented dataclass methodoligies for tagging counter-related cards tagging

This commit is contained in:
mwisnowski 2025-08-15 09:36:37 -07:00
parent 27ee13fb54
commit 039b8fe89e
6 changed files with 228 additions and 125 deletions

View file

@ -1,6 +1,6 @@
from __future__ import annotations
from settings import os
import os
import logging
# Create logs directory if it doesn't exist
@ -26,4 +26,13 @@ file_handler.setFormatter(NoDunderFormatter(LOG_FORMAT))
# Stream handler
stream_handler = logging.StreamHandler()
stream_handler.setFormatter(NoDunderFormatter(LOG_FORMAT))
stream_handler.setFormatter(NoDunderFormatter(LOG_FORMAT))
# Root logger assembly helper (idempotent)
def get_logger(name: str = 'deck_builder') -> logging.Logger:
logger = logging.getLogger(name)
if not logger.handlers:
logger.setLevel(LOG_LEVEL)
logger.addHandler(file_handler)
logger.addHandler(stream_handler)
return logger