Disable Output of SNMP Messages

Ever since I have upgraded to the latest version of SNMP++, all the SNMPMessages have been outputting in my application’s output. This was useful for debugging, but now I am looking to disable / hide these messages from appearing in my application’s output.

These include SNMPMessages, MsgQueues, v3MP messages, USMTimetable messages and many others. Any idea what needs to be disabled or done to do this?

Thank you.


if you have log profiles enabled, you can set the profile “off” using DefaultLog::log()->set_profile("off");.
If log profiles are disabled, you can disable logging for each log class (ERROR_LOG, WARNING_LOG, EVENT_LOG, INFO_LOG, DEBUG_LOG, USER_LOG) to zero using DefaultLog::log()->set_filter(logClass, 0).

Kind regards,

1 Like