Hi, I have some code that does warnings.warn.
I wonder if there is some setting in loguru that would detect warnings.warn raised in other part of the code and record it in the log file? Thanks.
Or I have to do both? Like
from loguru import logger
import warning
warning.warn('XXX')
logger.warn('XXX')
Hi, I have some code that does warnings.warn. I wonder if there is some setting in loguru that would detect warnings.warn raised in other part of the code and record it in the log file? Thanks. Or I have to do both? Like
)