[Python] Suppressing Logging From Package/Module when `logging` is used directly

Discussão em 'Python' iniciado por Stack, Abril 3, 2025.

  1. Stack

    Stack Membro Participativo

    I am using the pdf2docx package Gitub in python and it looks like in the converter module, they use logging directly instead of using a logger like

    logger = logger.getLogger(__name__)


    The logging.basicConfig in converter is set to logging.INFO and is propagating these horrible logs on. Is it impossible to suppress them because they use logging directly?

    Continue reading...

Compartilhe esta Página