pub async fn log_error( command: &str, message: &str, details: Option<&str>, ) -> Result<(), String>
Helper function to log errors with the global logger