[AGENT++] how to turn off DEBUG message

Gens Michael.Gens at TU-Berlin.DE
Thu Jun 19 12:09:38 CEST 2014


Hello Jochen,

Thank you very much for your reply.

If I found it right than "DefaultLog"  is mentioned in

/usr/local/include/snmp_pp/log.h

- I #include snmp_pp/snmp_pp.h which #include "snmp_pp/log.h" (indirectly).

- I did not "activate"/use logging at all.

- How and where can I find out if log profiles are enabled?

- How to handle logging at all?

Thank you!

Best Rgds.


                    Michael
  

On 06/18/2014 11:06 PM, Jochen Katz wrote:
> Hi,
>
>> I get the following message while running my program:
>>
>> 20140618.12:22:55:   40 77 C6 0A B0 7F 00 00
>> @w......
>> : (4)DEBUG  : SNMPMessage: return value for build message: (0)
>>
>> always if I invoke
>>
>> snmp.get(pdu, ctarget)
>>
>> How to turn off this behavior?
> this depends:
> If log profiles are enabled, use
> 	DefaultLog::log()->set_profile("quiet")
> Otherwise call
> 	DefaultLog::log()->set_filter(xxx_LOG, 0)
> for every log type you want to disable.
>
> Regards,
>    Jochen
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> https://oosnmp.net/mailman/listinfo/agentpp



More information about the AGENTPP mailing list