pub trait LogProjector<T>: Send + Syncwhere
T: Observable,{
// Required method
fn project_logs(
&self,
observation: &Observation<T>,
) -> Result<Vec<LogEvent>, ProjectionError>;
}Expand description
Open projector contract from typed observations into log events.
Required Methods§
Sourcefn project_logs(
&self,
observation: &Observation<T>,
) -> Result<Vec<LogEvent>, ProjectionError>
fn project_logs( &self, observation: &Observation<T>, ) -> Result<Vec<LogEvent>, ProjectionError>
Projects one observation into zero or more log events.
§Errors
Returns ProjectionError when the projector cannot derive log output
for the supplied observation.