Logging

Trait Logging 

Source
pub trait Logging: Send + Sync {
    // Required method
    fn log(&self, level: LogLevel, message: String);
}
Available on crate feature lightning only.
Expand description

An exported trait for handling logging messages.

Implement this trait to receive and handle logging messages from the lightning session.

Required Methods§

Source

fn log(&self, level: LogLevel, message: String)

Log a message with the given level

Trait Implementations§

Source§

impl<T> FfiConverterArc<T> for dyn Logging

Source§

const TYPE_ID_META: MetadataBuffer

Source§

type FfiType = *const c_void

Source§

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

Source§

fn try_lift(v: 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 Logging

Implementors§