<reponame>ogajduse/plbmng
import logging
import sys

from loguru import logger as base_logger

logger = base_logger


def init_logger() -> None:
    """Initialize logger, set log format and the base logging level."""
    global logger
    logger.remove()
    logger.add(
        sink=sys.stdout,
        level=logging.INFO,
        format="<green>{time:YYYY-MM-DD HH:mm:ss}</green> | " "<level>{level}</level> | " "<level>{message}</level>",
    )

import logging
import sys

from loguru import logger as base_logger

logger = base_logger


def init_logger() -> None:
    """Initialize logger, set log format and the base logging level."""
    global logger
    logger.remove()
    logger.add(
        sink=sys.stdout,
        level=logging.INFO,
        format="<green>{time:YYYY-MM-DD HH:mm:ss}</green> | " "<level>{level}</level> | " "<level>{message}</level>",
    )
Initialize logger, set log format and the base logging level.