moq_log_level

Function moq_log_level 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn moq_log_level( level: *const c_char, level_len: usize, ) -> i32
Expand description

Initialize the library with a log level.

This should be called before any other functions. The log_level is a string: “error”, “warn”, “info”, “debug”, “trace”

Returns a zero on success, or a negative code on failure.

§Safety

  • The caller must ensure that level is a valid pointer to level_len bytes of data.