5a3118f590
env_utils.env_bool replaces duplicated truthy parsing in config and rembg_cli. logging_config.configure_logging unifies entry-point setup. Co-authored-by: Cursor <cursoragent@cursor.com>
12 lines
287 B
Python
12 lines
287 B
Python
"""Shared logging setup for entry-point modules."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import logging
|
|
|
|
_LOG_FORMAT = "%(asctime)s %(levelname)s [%(name)s] %(message)s"
|
|
|
|
|
|
def configure_logging(level: int = logging.INFO) -> None:
|
|
logging.basicConfig(level=level, format=_LOG_FORMAT)
|