RSP_logNameRSP_log -- Log a module message to the RSPD. Synopsisint RSP_log (RSP_moduleBackend *mod, int priority, const char *message, ...);
Description This function allows your module to print messages to the RSPD's log file
(such as when a configuration error has occurred). If the RSPD is running
in debug mode, these messages will be printed to the console (otherwise they
will be seen in the log file). The priority parameter can be one of three
values: RSP_NOTE, RSP_WARN, and RSP_ERROR. These correspond to the three
different error levels of RSPD log messages.
Returns This function returns 0 if no error occurred, and -1 otherwise.
Error Conditions If an error occurs with this function,
-1 will be returned and rsp_error will
be set to one of the following values:
RSP_LOW_MEM
RSP_INVALID_ARGS
RSP_INVALID_PRIORITY
|