Platform SDK: Network Management |
The SnmpSvcSetLogLevel function adjusts the level of detail of the debug output from the SNMP service and from SNMP extension agents using the SnmpUtilDbgPrint function. This function is an element of the SNMP Utility API.
VOID SnmpSvcSetLogLevel( INT nLogLevel // level of severity of the event );
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 the SnmpSvcSetLogType and SnmpSvcSetLogLevel functions during development to adjust the output of debugging information. Extension agents can integrate the information with the debug output from the SNMP service.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Snmp.h.
Library: Use Snmpapi.lib.
Simple Network Management Protocol (SNMP) Overview, SNMP Functions, SnmpUtilDbgPrint, SnmpSvcSetLogType