Function cassandra_cpp_sys::cass_log_set_callback
[−]
[src]
pub unsafe extern "C" fn cass_log_set_callback(
callback: CassLogCallback,
data: *mut c_void
)
Sets a callback for handling logging events.
Note: This needs to be done before any call that might log, such as any of the cass_cluster_*() or cass_ssl_*() functions.
Default: An internal callback that prints to stderr
@param[in] data An opaque data object passed to the callback. @param[in] callback A callback that handles logging events. This is called in a separate thread so access to shared data must be synchronized.