Re: Class for sending STDERR to log4j

2007-02-23 Thread James Stauffer
Try something like Level.error or Level.ERROR. On 2/23/07, Robin Walker <[EMAIL PROTECTED]> wrote: Hello, Looking online, I found this neat bit of code and am trying to use it to send STDERR to log4j so we can log all System.err using log4j. Trouble is, it requires both a Logger and Level to

Class for sending STDERR to log4j

2007-02-23 Thread Robin Walker
Hello, Looking online, I found this neat bit of code and am trying to use it to send STDERR to log4j so we can log all System.err using log4j. Trouble is, it requires both a Logger and Level to be passed into the constructor and I'm a bit confused with regards to the "Level". #1 - I'm not cl

RE: Root logger appenders in log4j 1.3

2007-02-23 Thread Sergiu Bivol
Hi, Yes, perhaps there are reasons to change it, but then help me understand how to configure log4j in the following scenario. We provide a log4.xml within our app's jar so that our application logs messages during startup (say to file1 and console). We also let the users specify a separate (exte

Re: Root logger appenders in log4j 1.3

2007-02-23 Thread Ceki Gülcü
Hello Jake et al, The complete log4j manual is correct as far as log4j 1.0, 1.1, 1.2 are concerned. However, in log4j 1.3 the behavior was changed because: 1) it is not what a user would expect without reading the docs (surprise element) 2) very few people seemed to take advantage of the "p

Re: Excluding IP from log without custom filter

2007-02-23 Thread Ceki Gülcü
At 06:11 PM 2/23/2007, Chris Fellows wrote: Thanks for the fast response. LogBack uses 1.5 jdk and we're not quite ready to upgrade that to 5. Is there a way I can use log4j or commons to accomplish the type of filter I mentioned? Regards, Chris No, log4j not commons logging offer what you are

Re: No implementation defined for org.apache.commons.logging.LogFactory

2007-02-23 Thread Jacob Kjome
Is Log4j.jar at the same level commons-logging.jar? That is, are they in the same classloader? And are you making sure to use commons-logging.jar and not commons-logging-api.jar? Jake Quoting [EMAIL PROTECTED]: > Hi, > > Not sure if this is the correct list for this but will try anyway. > > W

Re: Excluding IP from log without custom filter

2007-02-23 Thread Chris Fellows
Thanks for the fast response. LogBack uses 1.5 jdk and we're not quite ready to upgrade that to 5. Is there a way I can use log4j or commons to accomplish the type of filter I mentioned? Regards, Chris - Original Message From: Ceki Gülcü <[EMAIL PROTECTED]> To: Log4J Users List ; lo

RE: Root logger appenders in log4j 1.3

2007-02-23 Thread Sergiu Bivol
It is "the Complete Log4j Manual" for as of v1.2.9, Dec, 2004, Page 68, there is " element" bullet at the bottom of the page. Note that it says "Similar to the element, declaring element will have the effect...". So it is not an exception for element. And yes, I tried with v1.2.8, and it seems

No implementation defined for org.apache.commons.logging.LogFactory

2007-02-23 Thread john . enevoldson
Hi, Not sure if this is the correct list for this but will try anyway. We hava a java app which throws the following when run as a db2 stored procedure: java.lang.ExceptionInInitializerError at org.apache.axis.handlers.BasicHandler.(BasicHandler.java:43) at org.apache.axis.client.Ser