You're browsing snippets anonymously. Log in or create an account to save and manage your own snippets.

Public Snippets
with tags: logging
Showing 1 snippet
Reset default python log handlers
import logging

formatter = logging.Formatter('FOO: %(message)s')

root_logger = logging.getLogger()
root_logger.setLevel(logging.INFO)

# This is the key line that removes the double logging
...
By xtream1101 Updated 2025-03-04 18:33
Showing 1 snippet