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 ra...@jpmchase.com on 2005/09/09 21:21:32 UTC
simple question related to HelloWorld2 that comes with The complete log4j
Manual
Hello!
I just got this book and it looks very good and its easy to read. I am
pretty new to log4j and I started with your HelloWorld2 sample program...
but I tried to use my log4j.properties and found that each time when I
invoke HelloWorld2 I could see that it is configuring log4j using my
log4j.properties file( (since I had given log4j.debug=true, I could see
that happening ). I tried to use a Initialization servlet in one of my
web application and it works fine..but I have another application which
is full of simple java programs .. Is there any way I can avoid parsing
log4j.propertis again and again when running HelloWorld2 with my own
log4j.properties ?
Your help is highly appreciated!
Raj
Re: simple question related to HelloWorld2 that comes with The complete log4j Manual
Posted by James Stauffer <st...@gmail.com>.
Yourr best bet is probably to put log4j.properties in your classpath
and let auto-configuration pick it up.
On 9/9/05, raj.x.arunmugan@jpmchase.com <ra...@jpmchase.com> wrote:
> Hello!
>
> I just got this book and it looks very good and its easy to read. I am
> pretty new to log4j and I started with your HelloWorld2 sample program...
> but I tried to use my log4j.properties and found that each time when I
> invoke HelloWorld2 I could see that it is configuring log4j using my
> log4j.properties file( (since I had given log4j.debug=true, I could see
> that happening ). I tried to use a Initialization servlet in one of my
> web application and it works fine..but I have another application which
> is full of simple java programs .. Is there any way I can avoid parsing
> log4j.propertis again and again when running HelloWorld2 with my own
> log4j.properties ?
>
> Your help is highly appreciated!
>
> Raj
>
>
>
--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org