Answer the question
In order to leave comments, you need to log in
How not to output messages from loguru to the console?
from loguru import logger
logger.add("_main.log", format="<lvl>[</lvl><c>{time:DD.MM.YYYY HH:mm:ss.SSS}</c><lvl>]</lvl> <lvl>{message}</lvl>")
logger.debug('Error')
logger.info('Information message')
logger.log('Warning')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question