@brief Set the logging callback function.
@paramin cb The callback to set.
@return 0 on success, < 0 on errror.
See Implementation
@brief Set the logging callback function.
@paramin cb The callback to set.
@return 0 on success, < 0 on errror.