"""Loguru logging setup."""

from __future__ import annotations

import sys

from loguru import logger


def setup_logging() -> None:
    """Configure loguru sink — remove default handler, add stdout."""
    logger.remove()
    logger.add(
        sys.stdout,
        level="INFO",
        format="<green>{time:YYYY-MM-DD HH:mm:ss}</green> | <level>{level}</level> | {message}",
    )