pub type LogCallback = extern "C" fn(level: u8, target: *const c_char, message: *const u8, message_len: usize);Expand description
FFI callback function type for logging
§Parameters
level: Log level (0=Trace, 1=Debug, 2=Info, 3=Warn, 4=Error)target: Log target (module path), null-terminated C stringmessage: Log message, pointer to UTF-8 bytesmessage_len: Length of the message in bytes
§Safety
The callback is invoked from Rust code. The target string is null-terminated.
The message pointer is valid for message_len bytes during the callback.