Source code for pibrary.logger

import warnings
from .loguru import logger as loguru_pro

# Optional: Warn users about the new module
warnings.warn(
    "The 'logger' module is deprecated and will be removed in a future version. Please update your imports to use 'pibrary.loguru'.",
    DeprecationWarning,
    stacklevel=2,
)

# Keep using the LoguruPro from loguru.py
[docs] logger = loguru_pro
# If users directly used `timeit`, maintain that interface
[docs] timeit = logger.timeit