Redirect Log Messages to syslog
Jochen Katz
katz____agentpp.com
Thu Jul 17 23:58:59 CEST 2003
Hi,
> Is it possible to redirect all log messages from stdout to system log (syslog() function)?
> How can i do it?
you will have to patch snmp++/src/v3.cpp (functions debugprintf and
debughexcprintf) and agent++/src/log.cpp (class AgentLogImpl).
You could also use AgentLogImpl::set_dest() and debug_set_logfile() to
redirect the logs to a file.
Regards,
Jochen
More information about the AGENTPP
mailing list