Function pact_ffi::pactffi_log_message

source ·
#[no_mangle]
pub unsafe extern "C" fn pactffi_log_message(
    source: *const c_char,
    log_level: *const c_char,
    message: *const c_char
)
Expand description

Log using the shared core logging facility.

This is useful for callers to have a single set of logs.

  • source - String. The source of the log, such as the class or caller framework to disambiguate log lines from the rust logging (e.g. pact_go)
  • log_level - String. One of TRACE, DEBUG, INFO, WARN, ERROR. Case-insensitive. Defaults to INFO.
  • message - Message to log

§Safety

This function will fail if any of the pointers passed to it are invalid.