Skip to content

Add an ignore_loggers kwarg to LoggingIntegration #4707

@ddabble

Description

@ddabble

Problem Statement

It's simply more convenient to have a kwarg for this, instead of having to call ignore_logger() multiple times 🙂

Solution Brainstorm

class LoggingIntegration(Integration):
    def __init__(
        self,
        ...,
        ignore_loggers=None,
    ):
        ...
        # --- Either: ---
        for logger in ignore_loggers or ():
            ignore_logger(logger)
        # --- Or: ---
        _IGNORED_LOGGERS.update(ignore_loggers or ())

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions