fastrag.ingestion.logger.base#
Logger: the base class for a pipeline event stream consumer.
docs/specification/logging.md: a logger is a sink for a
Pipeline’s event stream. It must never alter what
the pipeline produces or how it handles errors — it only observes.
Classes
|
Base class for components that consume a pipeline's event stream. |
- class fastrag.ingestion.logger.base.Logger(pipeline)[source]#
Bases:
ABCBase class for components that consume a pipeline’s event stream.
A
Loggeris associated with onePipelineat construction and does nothing untilrun()is awaited — matching everyPipelineStep’s own “nothing happens at construction” contract.- Parameters:
pipeline (Pipeline)
- abstractmethod async run()[source]#
Consume and process every event from
pipeline.Implementations iterate
self.pipeline(async for event in self.pipeline:), which both drives the pipeline’s root step to completion and yields each event as it is emitted — this is also what propagates a step failure out ofrun(), exactly as it does out ofrun(), underpolicy.on_error == "raise".- Return type:
None