nirs4all.core.logging.handlers module
Custom log handlers for nirs4all logging.
This module provides specialized handlers for throttled progress updates, file rotation, and other custom logging behaviors.
- class nirs4all.core.logging.handlers.BufferedHandler(max_size: int = 1000)[source]
Bases:
HandlerHandler that buffers log records for batch processing.
Useful for collecting logs during a phase and outputting them together, e.g., for branch comparison summaries.
- emit(record: LogRecord) None[source]
Buffer the log record.
- Parameters:
record – Log record to buffer.