HP-UX C SIP Stack Programmer's Guide (February 2008)

SIP Stack Log 355
Compilation Log Control
fwrite(data, strlen(data), 1, logFile);
fflush(logFile);
}
/*==================================================================================*/
Note When you replace the default logging, the formatted text includes only the
message type, source identifier, and log message.
COMPILATION LOG
CONTROL
The application can control the compiled log messages by setting the
RV_LOGMASK compilation flag found in the rvusrconfig.h file to one, or a
combination of the following definitions:
RV_LOGLEVEL_EXCEP
RV_LOGLEVEL_ERROR
RV_LOGLEVEL_WARNING
RV_LOGLEVEL_INFO
RV_LOGLEVEL_DEBUG
RV_LOGLEVEL_ENTER
RV_LOGLEVEL_LEAVE
RV_LOGLEVEL_SYNC
RV_LOGLEVEL_ALL
RV_LOGLEVEL_NONE
For example:
#define RV_LOGMASK RV_LOGLEVEL_ALLwill enable all
logging.
#define RV_LOGMASK RV_LOGLEVEL_NONEwill remove
all logging.
#define RV_LOGMASK
RV_LOGLEVEL_EXCEP+RV_LOGLEVEL_ERROR
will enable
only exception and error logs.
The amount of log lines in the compiled code has a tremendous effect on the
code size of your application. For more information, see the Reducing
Footprints chapter.