SnmpSvcSetLogLevel function (snmp.h)

[SNMP is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use Windows Remote Management, which is the Microsoft implementation of WS-Man.]

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.

Syntax

VOID SNMP_FUNC_TYPE SnmpSvcSetLogLevel(
  [in] INT nLogLevel
);

Parameters

[in] nLogLevel

Specifies a signed integer variable that indicates the level of detail of the debug output from the SnmpUtilDbgPrint function. This parameter can be one of the following values.

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.

Return value

This function does not return a value.

Remarks

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.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header snmp.h
Library Snmpapi.lib
DLL Snmpapi.dll

See also

SNMP Functions

Simple Network Management Protocol (SNMP) Overview

SnmpSvcSetLogType

SnmpUtilDbgPrint