swu_client_set_logging_callback()

Enable logging of messages generated by the library

Synopsis:

#include <swu/UpdateClient.h>

swu_result_t swu_client_set_logging_callback( 
                            swu_logging_callback_t log_func )

Arguments:

log_func
The logging function to use. A NULL value causes the library to log information on serious errors to stderr.

Library:

libswu-core

Use the -l swu-core option with qcc to link against the SWU library. This library is usually included automatically.

Description:

Enable logging of messages generated by the library. If no logging function is specified (i.e., log_func is NULL), all messages with a severity level of at least SWU_LOG_WARNING are logged to stderr.

Returns:

One of the following swu_result_t values:

SWU_RESULT_SUCCESS
The operation succeeded.
SWU_RESULT_ERROR
An error occurred.