loguru/tests/exceptions/source/others/level_number.py

17 lines
233 B
Python

import sys
from loguru import logger
logger.remove()
logger.add(
sys.stderr, format="{level.name} | {level.no}", diagnose=False, backtrace=False, colorize=False
)
def a():
with logger.catch(level=13):
1 / 0
a()