The thing that helped me was to realize that each appender gets configured 
from the properties file (or dynamically) by introspection.
So typically, any setXXX() method that your appender supports (check the 
javadocs--including inherited methods) can be used to "configure" your 
appender.

--
Tom Goetze




Yes I've been searching for 2 days and haven't found anything...

Only stuff is the base configuration in the short manual on the log4j
website...and a couple of review articles on the use of log4j...

And of course I'd to hunt down the Conversion Pattern formatting string
specs stuff from the JavaDOC API.. an unlikely place I expected to
search for this information, IMHO.

Could somebody kindly put up 1 - 2 pages, comprehensively documenting
the use of Log4J's configuration file and some tips/tricks etc (For
common use)... or if one is already available, maybe put a link to the
same on the main "Documentation" page.

Thanks,

On Tue, 2004-08-17 at 15:35, [EMAIL PROTECTED] wrote:
> Speaking of which, how come there are no documentation on the 
> configuration parameters... Or is it me who can't find it?
> 
> Thanks,
> -ramin
> 
> "Harshawardhan Gadgil" <[EMAIL PROTECTED]>
> 08/17/2004 04:34 PM
> Please respond to "Log4J Users List"
> 
> 
>         To:     "Log4J Users List" <[EMAIL PROTECTED]>
>         cc: 
>         Subject:        Re: Configuring Log4J
> 
> 
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to