loguru
loguru copied to clipboard
missing isEnabledFor
It seems that logger is missing the test isEnabledFor() method.
https://docs.python.org/3/library/logging.html#logging.Logger.isEnabledFor
You can achieve a similar functionality as isEnabledFor()
by using opt(lazy=True)
in Loguru. See documentation here.
def expensive_func():
...
logger.opt(lazy=True).debug("Debug data: {}", expensive_func)