[AGENT++] how to turn off DEBUG message

Jochen Katz katz at agentpp.com
Sat Jun 21 22:36:23 CEST 2014


Hello,

> If I found it right than "DefaultLog"  is mentioned in
> 
> /usr/local/include/snmp_pp/log.h

yes, this is the right file to look at.

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

But it is there by default, as logging shows what is going on in the
library.

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

Log profiles are enabled if you did not disable them in config_snmp_pp.h
(undef WITH_LOG_PROFILES)

> - How to handle logging at all?

Maybe you should start with the log profile "full" (LOG_DEFAULT_FULL).
You later can reduce it to "std" or "quiet". You could also initialize
logging with your own FILE* or a file name or even provide your own logger.

Regards,
  Jochen


More information about the AGENTPP mailing list