logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Ebersole" <steveebers...@austin.rr.com>
Subject Re: Really Newbie Problem
Date Sat, 01 Mar 2003 17:53:36 GMT
Glad you got it working.

A note on your postscript.  All jar files required by a servlet-based
application should be present in the web app's WEB-INF/lib directory for
automatic detection.  Thats not unique to Tomcat.

Typically when using log4j in a web-app, place log4j.jar in the WEB-INF/lib
directory; place your config file in WEB-INF/classes...



----- Original Message -----
From: "Ronnie" <lormee2001@yahoo.com.sg>
To: "Log4J Users List" <log4j-user@jakarta.apache.org>
Sent: Saturday, March 01, 2003 9:59 AM
Subject: Re: Really Newbie Problem


> It's working at last!!! =) :-)
>
> I put the file log4j.jar into the "webapps/<appName>/WEB-INF/lib" folder
and
> it worked!
>
> I added the -Dlog4j.debug=true line into catalina.bat and found that log4j
> initialization couldn't find log4j.properties file.
> So out of frustration I copied the files log4j.jar and log4j.properties
into
> every single folder in "webapps/<appName>" and started tomcat.
> Got a shock when it actually started initializing correctly!
> Went through some trial and testing and found out the cause of all my woes
> for the past week...
>
> This is all thanks to you Mr Ebersole! I thank you very much! =)
>
>
> Gratefully,
> Ronnie
>
> P.S. Maybe this problem could be highlighted in the documentation? I had
> thought Tomcat should be able to find all required libraries in
"common/lib"
> but turned out to be false in my case.
> ----- Original Message -----
> From: "Steve Ebersole" <steveebersole@austin.rr.com>
> To: "Log4J Users List" <log4j-user@jakarta.apache.org>
> Sent: Saturday, 01 March, 2003 10:49 PM
> Subject: Re: Really Newbie Problem
>
>
> > Probabaly not.  I am assuming startup is the bat/cmd file to start
tomcat?
> > You need to edit that file.  Somewhere in that file there will be a java
> > command to actually start tomcat.  Thats where you need to put the -D.
> >
> > java -D log4j.debug=true ...
> >
> > Also just noticed that you define a logger named
> > "edu.rmit.isys2049.EmployeeAccessBean", but then never attach any
> appenders
> > to it.  Because of the "additivity" feature of log4j, statements going
to
> > that logger will also be handled by the rootLogger, but root has WARN
set
> as
> > its level.  So in reality, statements sent to the
> > "edu.rmit.isys2049.EmployeeAccessBean" logger, will only shoe up if they
> are
> > WARN or above.  Not sure that is what you are intending.
> >
> >
> >
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Promote your business from just $5 a month!
> http://sg.biztools.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
>


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


Mime
View raw message