[This is preliminary documentation and subject to change.]
The SnmpSvcSetLogType function adjusts the destination for 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 SnmpSvcSetLogType(
INT nLogType // destination for debug output
);
Value | Meaning |
---|---|
SNMP_OUTPUT_TO_CONSOLE | The destination for the debug output is a console window. |
SNMP_OUTPUT_TO_LOGFILE | The destination for the debug output is the SNMPDBG.LOG file in the SYSTEM32 directory. |
SNMP_OUTPUT_TO_DEBUGGER | The destination for the debug output is a debugger utility. |
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: 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, SnmpUtilDbgPrint, SnmpSvcSetLogLevel