Ok. Thank you, Frank. On 26/04/2012 12:00, [email protected] wrote: > Send SNMP4J mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.agentpp.org/mailman/listinfo/snmp4j > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of SNMP4J digest..." > > > Today's Topics: > > 1. Re: How to enable logging? (Frank Fock) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 26 Apr 2012 08:18:09 +0200 > From: Frank Fock<[email protected]> > Subject: Re: [SNMP4J] How to enable logging? > To: [email protected] > Message-ID:<[email protected]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi Alex, > > SNMP4J (and all SNMP4J-* APIs on top of it) use a logging adapter > to abstract from a concrete logging implementation. > > To adapt to Log4J you need to place the following code > somewhere in your main(): > > // initialize Log4J logging > static { > LogFactory.setLogFactory(new Log4jLogFactory()); > } > > Best regards, > Frank > > Am 25.04.2012 10:41, schrieb Alex Vavilin: >> Hi all, >> >> I need to enable the logging features in SNMP4j. How can I achieve that? >> For our projects we use log4j, so I have log4j.xml at the top of >> application's classpath configured the way it logs to console. >> >> It's working pretty fine. >> >> Now I want to enable logging for SNMP4j so I just put the following lines: >> >> <category name="org.snmp4j"> >> <priority value="DEBUG"/> >> </category> >> >> But nothing happens, I can't see a single line of log output from >> SNMP4j. Am I doing something wrong? >> >> Thanks in advance, >> Alex Vavilin. >> >> _______________________________________________ >> SNMP4J mailing list >> [email protected] >> http://lists.agentpp.org/mailman/listinfo/snmp4j
_______________________________________________ SNMP4J mailing list [email protected] http://lists.agentpp.org/mailman/listinfo/snmp4j
