Hi Mark,
On Thu, Jan 8, 2009 at 1:43 AM, Mark Thomas wrote:
>
> It is in bin/extras on all the mirrors.
>
ok, that was what I was missing.
> The logging page coudl do with updating with that information and a browse
> option on the downoad page woudl help find it. I'll add those changes to my
> From: Gregor Schneider [mailto:rc4...@googlemail.com]
> Ain't it just enough to copy "commons-logging-1.1.jar" do
> ${CATALINA_HOME}/lib, and that's it?
No.
> And one suggestion:
>
> Why make it so difficult and have the user to do the build? Why not
> put the appropriate jars for download on
Dear all,
actually I like Tomcat. I like the Apache Group. Most docs are quite useful.
However, things are changing slightly since I'm trying to implement
log4j with Tomcat 6.
I've got it nicely running on my boxes running Tomcat 5.5, btw.
I started taking a look at the docs at
http://tomcat.ap
you need to use log4j in your hello.jsp, and not the log(String) method
Filip
fredk2 wrote:
Many thanks for the response. For some reasons I did not see it over the (hot
and humid) weekend.
yes - I did those steps and it does work well ... although in my case I
cannot use TC_HOME (read-only)
t;>> # Log rotation
>>>> log4j.appender.myapp1=org.apache.log4j.DailyRollingFileAppender
>>>> log4j.appender.myapp1.File=${catalina.base}/logs/myapp1.log
>>>> log4j.appender.myapp1.DatePattern='.'-MM-dd
>>>> # Print the date in ISO 8601 format
>>>> log4j.appende
for tomcat container logging, its easy
1. put log4j.jar in TC_HOME/lib
2. put log4j.properties in TC_HOME/lib
3. compile the extras
ant -f extras.xml
4. replace TC_HOME/bin/tomcat-juli.jar with the one compiled from step 3
5. put extras//tomcat-juli-adapters.jar in TC_HOME/lib
and that's i
pp1.DatePattern='.'-MM-dd
>> # Print the date in ISO 8601 format
>> log4j.appender.myapp1.layout=org.apache.log4j.PatternLayout
>> log4j.appender.myapp1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
>>
>>
>> Any hints - suggestions are appreciated,
>> Many Thanks - Fred
>>
>
>
&g
if you want to use log4j in your application only,
then forget everything you read on logging.html
all you need to do is log4j.jar in WEB-INF/lib
log4j.properties in WEB-INF/classes
the steps you are outlining, are converting tomcat from using
java.util.logging to log4j for the container. and y
ks - Fred
--
View this message in context:
http://www.nabble.com/Tomcat-6-and-log4j-for-a-web-application-tf4325752.html#a12319790
Sent from the Tomcat - User mailing list archive at Nabble.com.
-
To start a new topic, e-mail: use