Back at it...
This is what I have in my log4j.properties file:
# Set root logger priority to DEBUG and its appenders
log4j.rootLogger=DEBUG, A1
# A1 PROPERTIES
log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A1.File=webapp.log
log4j.appender.A1.DatePattern='.'yyyy-ww
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%x - %d{ISO8601} [%t] %-5p %c - %m%n
Shouldn't this stop messages going to the console (stderr or stdout)?
Yet, I see all of this webapp's messages in catalina2004-11-19.txt
inside the $TOMCAT/logs directory. Can someone point me to what I'm
missing?
Just to clarify, my goal is to get every piece of logged information to
go to separate files, but everything from each webapp to its own log
file.
Thanks.
--
On Wed, 2004-10-27 at 10:01, Shapira, Yoav wrote:
> Hi,
>
> >Is there a link you can point me toward to get log4j going instead of
> >catalina.out?
> >
> >If I implement that now, then I'll be good to go to move to Tomcat 5.5?
>
> Link: http://logging.apache.org/log4j.
> Steps:
> 1. Download log4j 1.2.8 .zip file
> 2. Extract file wherever, take log4j-1.2.8.jar and put in WEB-INF/lib of
> your webapp
> 3. Write a log4j.properties file defining a file appender which writes
> to logs/myapplog.txt (an example is provided in the log4j docs, both in
> the short manual and in the PropertyConfigurator class JavaDoc). Put
> this file in WEB-INF/classes.
>
> That's it.
>
> Yoav
>
>
>
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential, proprietary
> and/or privileged. This e-mail is intended only for the individual(s) to
> whom it is addressed, and may not be saved, copied, printed, disclosed or
> used by anyone else. If you are not the(an) intended recipient, please
> immediately delete this e-mail from your computer system and notify the
> sender. Thank you.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Ryan Daly
Network Administrator
Concurrent Technologies Corporation
100 CTC Drive
Johnstown, PA US 15904-1935 (V) 814.269.6889 (F) 814.269.2685
91 3E E1 09 16 D1 5A 67 1A CA 16 C7 E0 C1 74 72
ftp.ctcgsc.org:/pub/PGP-keys/rd.asc