Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This function enables debugging output from the SNMP service.
Syntax
VOID SnmpUtilDbgPrint( INT nLogLevel , LPSTR szFormat ); |
Parameters
- nLogLevel
-
Specifies a signed integer variable that indicates the level of detail of the log event. This parameter can be one of the following values.
Value Description SNMP_LOG_SILENT
Disable all debugging output.
SNMP_LOG_FATAL
Display fatal errors only.
SNMP_LOG_ERROR
Display recoverable errors.
SNMP_LOG_WARNING
Display warnings and recoverable errors.
SNMP_LOG_TRACE
Display trace information.
SNMP_LOG_VERBOSE
Display verbose trace information.
- szFormat
-
Pointer to a null-terminated format string that is similar to the standard C library function printf.
Return Value
This function has no return values.
Remarks
Extension agents are encouraged to use this function during development to enable debug output from the SNMP service.
Use the SnmpSvcSetLogLevelfunction to set the level of detail of the debug output from the SNMP service or from an extension agent's call to the SnmpUtilDbgPrintfunction. Call the SnmpSvcSetLogTypefunction to specify the destination for the debug output.
Requirements
Header | snmp.h |
Library | snmpapi.lib |
Windows Embedded CE | Windows CE 3.0 and later |