pub unsafe extern "C" fn log_event(
    start: *const u8,
    length: u32
) -> i32
Expand description

Add a log item. Return values are

  • -1 if logging failed due to the message being too long
  • 0 if the log is already full
  • 1 if data was successfully logged.