Function mongocrypt_sys::mongocrypt_setopt_log_handler

source ยท
pub unsafe extern "C" fn mongocrypt_setopt_log_handler(
    crypt: *mut mongocrypt_t,
    log_fn: mongocrypt_log_fn_t,
    log_ctx: *mut c_void,
) -> bool
Expand description

Set a handler on the @ref mongocrypt_t object to get called on every log message.

@param[in] crypt The @ref mongocrypt_t object. @param[in] log_fn The log callback. @param[in] log_ctx A context passed as an argument to the log callback every invocation. @pre @ref mongocrypt_init has not been called on @p crypt. @returns A boolean indicating success. If false, an error status is set. Retrieve it with @ref mongocrypt_ctx_status