labscript_utils.setup_logging.LessThanFilter

class labscript_utils.setup_logging.LessThanFilter(less_than)[source]

Bases: Filter

__init__(less_than)[source]

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

__init__(less_than)

Initialize a filter.

filter(record)

Determine if the specified record is to be logged.

filter(record)[source]

Determine if the specified record is to be logged.

Returns True if the record should be logged, or False otherwise. If deemed appropriate, the record may be modified in-place.