This commit is contained in:
JiriUhlir
2026-07-10 09:46:49 +02:00
parent 429cb84461
commit 7a3f61c125
16 changed files with 762 additions and 16 deletions
+16
View File
@@ -0,0 +1,16 @@
"""Centrální logging. Nikdy nelogujeme secrets (API klíče, hlavičky s creds)."""
import logging
import os
_LEVEL = os.getenv("LOG_LEVEL", "INFO").upper()
def configure_logging() -> None:
logging.basicConfig(
level=_LEVEL,
format="%(asctime)s %(levelname)s [%(name)s] %(message)s",
)
def get_logger(name: str) -> logging.Logger:
return logging.getLogger(name)