pub trait LogCallback: Send + Sync {
// Required method
fn on_log(
&self,
level: String,
target: String,
message: String,
) -> Result<()>;
}Expand description
Callback interface for receiving SDK log events Mobile implementations forward these to Flight Recorder
Required Methods§
Sourcefn on_log(&self, level: String, target: String, message: String) -> Result<()>
fn on_log(&self, level: String, target: String, message: String) -> Result<()>
Called when SDK emits a log entry
§Parameters
- level: Log level (“TRACE”, “DEBUG”, “INFO”, “WARN”, “ERROR”)
- target: Module that emitted log (e.g., “bitwarden_core::auth”)
- message: The log message text
§Returns
Result<(), BitwardenError> - mobile implementations should catch exceptions and return errors rather than panicking