[This is preliminary documentation and subject to change.]
The SnmpUtilDbgPrint function enables debugging output from the SNMP service. This function is an element of the SNMP Utility API.
VOID SnmpUtilDbgPrint(
INT nLogLevel, // level of severity of event
LPSTR szFormat // pointer to a format string
);
Value | Meaning |
---|---|
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. |
None.
Extension agents are encouraged to use this function during development to enable debug output from the SNMP service.
Use the SnmpSvcSetLogLevel function to set the level of detail of the debug output from the SNMP service or from an extension agent's call to the SnmpUtilDbgPrint function. Call the SnmpSvcSetLogType function to specify the destination for the debug output.
Windows NT: Requires version 5.0 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in snmp.h.
Import Library: Use snmpapi.lib.
Simple Network Management Protocol (SNMP) Overview, SNMP Functions, SnmpSvcSetLogType, SnmpSvcSetLogLevel