User-Defined Object Optional Routine

The dhcpapi_logmessage routine is available to the user-defined object programmer. A prototype is available in dhcpapi.h with the symbol defined for linking in /usr/lib/dhcp_api.exp.

The routine specifies a message that is logged to the DHCP server's configured log file, provided that message severity level, which specified by the s parameter, has been enabled. The structure of the dhcpapi_logmessage routine follows:

void dhcpapi_logmessage ( enum dhcplogseverity s,
                          char *format,
                          ...                                              ) ;
Item Description
s Is the severity level of the message to be logged. Message severities are defined in the dhcpapi.h header file and correspond directly to the DHCP server configuration logItem levels of logging.
format Is the typical printf format string.