Trait LogProcessor

Source
pub trait LogProcessor: Send {
    // Required methods
    fn process_line(&mut self, line: &str) -> Option<String>;
    fn get_full_log(&self) -> String;
    fn save_full_log<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 Path,
    ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_final_result(&self) -> Option<&TaskResult>;
}
Expand description

Trait for processing agent log output

Required Methods§

Source

fn process_line(&mut self, line: &str) -> Option<String>

Process a single line of log output Returns Some(formatted_output) if the line should be displayed, None otherwise

Source

fn get_full_log(&self) -> String

Get the full log content

Source

fn save_full_log<'life0, 'life1, 'async_trait>( &'life0 self, path: &'life1 Path, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Save the full log to a file

Source

fn get_final_result(&self) -> Option<&TaskResult>

Get the final result of the task execution

Implementors§