Source code for daops.utils.common
"""Common utilities for the daops package."""
from clisops import enable_logging as _enable_logging
from loguru import logger
[docs]
def _logging_examples() -> None:
"""Enable testing module."""
logger.trace("0")
logger.debug("1")
logger.info("2")
logger.success("2.5")
logger.warning("3")
logger.error("4")
logger.critical("5")
[docs]
def enable_logging() -> list[int]:
"""Enable logging for the daops package."""
logger.enable("daops")
return _enable_logging()