_ClassificationWarningCollector

class _ClassificationWarningCollector()

Bases: Handler

Logging handler that records WARNING-level messages verbatim, so they can be surfaced in the saved classification report instead of living only in the log file.

Attached to PeakFinder.logger for the duration of the classifier stages in _post_process_events and nowhere else - see that method for where it starts and stops listening. report_channel_status reads self._classification_warnings afterward; this handler has no effect on what actually gets logged, since the root/module logging setup is untouched.

Public Methods

_ClassificationWarningCollector.emit(record: LogRecord) None

Do whatever it takes to actually log the specified logging record.

This version is intended to be implemented by subclasses and so raises a NotImplementedError.

Private Methods

_ClassificationWarningCollector.__init__() None

Initializes the instance - basically setting the formatter to None and the filter list to empty.