fusetools.logging_tools.IgnoreThreadsFilter

class fusetools.logging_tools.IgnoreThreadsFilter[source]

Bases: logging.Filter

Only accepts log records that originated from the main thread

Initialize a filter.

Initialize with the name of the logger which, together with its children, will have its events allowed through the filter. If no name is specified, allow every event.

Methods

filter

Determine if the specified record is to be logged.

filter(record)[source]

Determine if the specified record is to be logged.

Is the specified record to be logged? Returns 0 for no, nonzero for yes. If deemed appropriate, the record may be modified in-place.