Re: Tomcat 6 and log4j for a web application

2007-08-28 Thread Filip Hanik - Dev Lists
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)

Re: Tomcat 6 and log4j for a web application

2007-08-27 Thread fredk2
r.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 >>>> >>>>

Re: Tomcat 6 and log4j for a web application

2007-08-24 Thread Filip Hanik - Dev Lists
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

Re: Tomcat 6 and log4j for a web application

2007-08-24 Thread fredk2
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

Re: Tomcat 6 and log4j for a web application

2007-08-24 Thread Filip Hanik - Dev Lists
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

Tomcat 6 and log4j for a web application

2007-08-24 Thread fredk2
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