pub type LogCallback = extern "C" fn(u8, *const i8, *const u8, 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.