Hi,
I have installed the net-snmp v5.7 in my Linux machine.
I have used the following flags in the configuration script and
installed net snmp.
--with-logfile=/var/log/snmpd.log --enable-debugging
But when I call "snmp_enable_stderrlog();" in my application, it just
prints the following 2 lines and all the debug information on to the
screen.
logging:register: registering log type 2 with pri 7
Log handling defined - disabling stderr
And "snmp_enable_calllog();" will print the following 2 lines on the
screen and prints no debug info.
logging:register: registering log type 5 with pri 7
Log handling defined - disabling stderr
In both the cases "/var/log/messages" and "/var/log/snmpd.log" are
empty.
I just want to know how to redirect my debug information to a log file.
Although I know that redirecting the stderr (#./application 2>file.log)
to an external file, i would like to do that from inside the
application.
And I also want to know is there any way to print only specific debug
info other than printing the everything.
Any help will be much appreciated.
Thanks,
Basil Joseph.
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders