2009/2/19 B V Narasimhulu <[email protected]>:
> Right now the net-snmp log-message from both snmp_log() and DEBUGMSGTL()
> are logging to same snmpd.log file.

snmp_log messages are typically logged at priority LOG_WARNING or LOG_ERR
DEBUGMSG messages are logged at priority LOG_DEBUG


> Is there anyway to seperate the messages of snmp_log ()
> from that of the messages from DEBUGMSGTL() ?

For logging via syslog (-Ls), then see syslog.conf(5).
For logging to file (-Lf), then see snmpcmd(1)
   In particular, the section LOGGING OPTIONS


> It would be better if we have seperate log files for those messages.

If you want separate files for different priorities, you can configure that.
It's all in the documentation.

Dave

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to