finesse.utilities.logging.FinesseStreamHandler

Overview

class finesse.utilities.logging.FinesseStreamHandler(*args, **kwargs)[source]

Bases: StreamHandler

Finesse stream handler.

This class provides a mechanism to exclude displayed log channels by wildcard. It is otherwise identical to logging.StreamHandler.

Methods

FinesseStreamHandler.__init__(*args, **kwargs)

Initialize the handler.

FinesseStreamHandler.exclude(pattern)

FinesseStreamHandler.filter(record)

Determine if a record is loggable by consulting all the filters.

FinesseStreamHandler.reset_exclude_patterns()

Empty the configured log channel exclude patterns, and return what was there.