Missing level getter
Author: mrx23dotCreated Sep 16, 2026Updated Sep 16, 2026
I might be blind, but I couldn't see a simple way to get the current logging level in the doc: https://loguru.readthedocs.io/en/stable/overview.html
something like
if logger.is_debug:
or
if logger.level == 'debug':only
logger.opt(lazy=True).debug(slow eval)
Source: Delgan/loguru