pub trait Logger {
// Required methods
fn log(&mut self, message: &str, args: &[&str]);
fn toggle_log_view(&mut self);
fn get_log_directory(&self) -> PathBuf;
fn get_log_file_path(&self) -> PathBuf;
fn write_log_to_file(&self, message: &str) -> Result<()>;
}Expand description
Logger trait for writing logs to a file and displaying them in the TUI
Required Methods§
Sourcefn log(&mut self, message: &str, args: &[&str])
fn log(&mut self, message: &str, args: &[&str])
Log a message with optional formatting arguments
Sourcefn toggle_log_view(&mut self)
fn toggle_log_view(&mut self)
Toggle between showing logs and normal output
Sourcefn get_log_directory(&self) -> PathBuf
fn get_log_directory(&self) -> PathBuf
Get the log directory path
Sourcefn get_log_file_path(&self) -> PathBuf
fn get_log_file_path(&self) -> PathBuf
Get the log file path for the current session
Sourcefn write_log_to_file(&self, message: &str) -> Result<()>
fn write_log_to_file(&self, message: &str) -> Result<()>
Write a log message to file