forked from LiveCarta/ContentGeneration
14 lines
310 B
Python
14 lines
310 B
Python
from __future__ import annotations
|
|
|
|
import logging
|
|
|
|
|
|
DEFAULT_LOG_FORMAT = "%(asctime)s | %(levelname)s | %(name)s | %(message)s"
|
|
|
|
|
|
def configure_logging(level: str = "INFO") -> None:
|
|
logging.basicConfig(
|
|
level=getattr(logging, level.upper(), logging.INFO),
|
|
format=DEFAULT_LOG_FORMAT,
|
|
)
|