Skip to main content

LogCallbackFn

Type Alias LogCallbackFn 

Source
pub type LogCallbackFn = extern "C" fn(level: c_int, message: *const c_char);
Expand description

Logging callback function type

Called by Go’s slog handler to forward log messages to Rust.

§Arguments

  • level - Log level (0=trace, 1=debug, 2=info, 3=warn, 4=error)
  • message - Log message (null-terminated C string)