Source code for jitx.log

from collections.abc import Mapping
import logging

# Info is traditionally used a little bit too often in librares, so introduce a
# new level that's above info but below warning. This will be the default
# console logging level.
NOTICE = 25
logging.addLevelName(NOTICE, "NOTICE")


[docs] def notice( logger: logging.Logger, msg: object, *args: object, exc_info=None, stack_info: bool = False, stacklevel: int = 1, extra: Mapping[str, object] | None = None, ) -> None: return logger.log( NOTICE, msg, *args, exc_info=exc_info, stack_info=stack_info, stacklevel=stacklevel, extra=extra, )