LogCallback

Trait LogCallback 

Source
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§

Source

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

Trait Implementations§

Source§

impl<T> FfiConverterArc<T> for dyn LogCallback

Source§

const TYPE_ID_META: MetadataBuffer

Source§

type FfiType = Handle

Source§

fn lower(obj: Arc<Self>) -> Self::FfiType

Source§

fn try_lift(handle: Self::FfiType) -> Result<Arc<Self>>

Source§

fn write(obj: Arc<Self>, buf: &mut Vec<u8>)

Source§

fn try_read(buf: &mut &[u8]) -> Result<Arc<Self>>

Source§

impl<T> LiftRef<T> for dyn LogCallback

Implementors§