[SNMP4J] SNMP4J Digest, Vol 98, Issue 12

Alex Vavilin avavilin at kimiasol.com
Thu Apr 26 13:54:18 CEST 2012


Ok. Thank you, Frank.

On 26/04/2012 12:00, snmp4j-request at agentpp.org wrote:
> Send SNMP4J mailing list submissions to
> 	snmp4j at agentpp.org
>
> 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
> 	snmp4j-request at agentpp.org
>
> You can reach the person managing the list at
> 	snmp4j-owner at agentpp.org
>
> 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<fock at agentpp.com>
> Subject: Re: [SNMP4J] How to enable logging?
> To: snmp4j at agentpp.org
> Message-ID:<4F98E8A1.6030301 at agentpp.com>
> 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
>> SNMP4J at agentpp.org
>> http://lists.agentpp.org/mailman/listinfo/snmp4j




More information about the SNMP4J mailing list