logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Grobmeier <grobme...@gmail.com>
Subject Re: Help understanding Log4j basics
Date Tue, 23 Nov 2010 14:09:18 GMT
> 1. How does one start log4j in a webapp? Is having the
> log4j.properties or log4j.xml file in the classpath enough?

Usually yes. You should have log4j itself in the classpath, of course.

> 2. How does one stop log4j in a webapp?

Configure it via log4j config, then restart webapp (this reloads configuration)

> 3. Is there a way to specify which level of logging, i.e. debug, info,
> error, is printed?

Yes, via the log4j configuration file.
http://logging.apache.org/log4j/1.2/manual.html
(search for configuration)

Cheers,
Christian

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



-- 
http://www.grobmeier.de

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


Mime
View raw message