You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Harshawardhan Gadgil <hg...@cs.indiana.edu> on 2004/08/17 18:00:24 UTC

Configuring Log4J

Hi, 
I'm a new user to Log4J and I've a configuration question.

I'm using Log4J in my programs to o/p all sorts of stuff from DEBUG to
FATAL.. Also I make use of Apache AXIS in some places..

using 
log4j.debug=true
OR
log4j.rootLogger=DEBUG, MYSTUFF

causes the Axis's DEBUG level stuff to be printed out as well

Is there a way to only allow my logging and disable AXIS's logging

Only way I could get it to work is by doing
log4j.rootLogger=INFO, MYSTUFF

but then it does not print out my debug statements either...

I tried the following too
org.apache.axis=false

AND
log4j.additivity.org.apache.axis=false
but w/ no result

Any help in this matter is highly appreciated.

Thanks,
-- 
Harshawardhan S. Gadgil  [http://www.cs.indiana.edu/~hgadgil]
Community Grids Lab, Bloomington, IN          [(812)856-0756]


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Configuring Log4J

Posted by Harshawardhan Gadgil <hg...@cs.indiana.edu>.
PHEW...
Got it

log4j.category.org.apache.axis=OFF

did the trick...


On Tue, 2004-08-17 at 11:00, Harshawardhan Gadgil wrote:
> Hi, 
> I'm a new user to Log4J and I've a configuration question.
> 
> I'm using Log4J in my programs to o/p all sorts of stuff from DEBUG to
> FATAL.. Also I make use of Apache AXIS in some places..
> 
> using 
> log4j.debug=true
> OR
> log4j.rootLogger=DEBUG, MYSTUFF
> 
> causes the Axis's DEBUG level stuff to be printed out as well
> 
> Is there a way to only allow my logging and disable AXIS's logging
> 
> Only way I could get it to work is by doing
> log4j.rootLogger=INFO, MYSTUFF
> 
> but then it does not print out my debug statements either...
> 
> I tried the following too
> org.apache.axis=false
> 
> AND
> log4j.additivity.org.apache.axis=false
> but w/ no result
> 
> Any help in this matter is highly appreciated.
> 
> Thanks,
-- 
Harshawardhan S. Gadgil  [http://www.cs.indiana.edu/~hgadgil]
Community Grids Lab, Bloomington, IN          [(812)856-0756]


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org