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

-- 
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax:   +49 7024 8688231

_______________________________________________
SNMP4J mailing list
[email protected]
http://lists.agentpp.org/mailman/listinfo/snmp4j

Reply via email to