15 lines
356 B
Python
15 lines
356 B
Python
from __future__ import annotations
|
|
|
|
import logging
|
|
import sys
|
|
|
|
|
|
def configure_logging(level: str = "INFO") -> None:
|
|
numeric_level = getattr(logging, level.upper(), logging.INFO)
|
|
logging.basicConfig(
|
|
level=numeric_level,
|
|
format="%(asctime)s %(levelname)s %(name)s - %(message)s",
|
|
stream=sys.stdout,
|
|
force=True,
|
|
)
|