[AGENT++] I have a quesion about log of snmp++

Jochen Katz katz at agentpp.com
Mon Jul 21 23:34:20 CEST 2008


Hello,

> Is there excellence the log of snmp++?
> 
> Because I use a lot of code for the log, why don’t replacing current log
> system?

you can replace the default AgentLogImpl object to send all logging 
messages to your own log functions:
- Create your own AgentLog implementation (most likely as a wrapper for 
the logging API you're using) (see log.h)
- Call DefaultLog::init(new YourAgentLogImplClass()) before calling any 
other agent++/snmp++ function.

Regards,
   Jochen



More information about the AGENTPP mailing list