Re: Print log via custom loger
Robert Story <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Organization | Net-SNMP |
| Message-ID | <20050816121324.10bc74d7@aud> |
On Tue, 16 Aug 2005 16:12:11 +0200 Kodel wrote:
KO> How do I do that net-snmp demon and my agentX will print via my own
KO> loger?
There is a logging callback that can be enabled... call snmp_enable_calllog()
and register a SNMP_CALLBACK_LOGGING callback handler.
The callback will be called with a snmp_log_message structure, containing the
message and the priority. See snmplib/snmp_logging.c for details.
--
NOTE: messages sent directly to me, instead of the lists, will be deleted
unless they are requests for paid consulting services.
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users