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='.'-ww
Hi,
Hmm, I'm not sure if swallowOutput on the DefaultContext works. I've
only used it on a proper Context declaration. What Tomcat version are
you using?
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Ryan Daly [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 27,
Yoav answered this yesterday. Search for RE: Server.xml configuration
question at
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]
pache.org
-Original Message-
From: Ryan Daly [mailto:[EMAIL PROTECTED]
Sent: Wednesday 27 October 2004 14:17
To: Tomcat Users List
Subject:
This is how I did it before implementing log4j.
Remember, the TC logger is going away in 5.5x
Context path=/myapp
docBase=c:\\apps\\myapp
debug=0
crossContext=false
reloadable=false
privileged=false
swallowOutput=true
On Wed, 2004-10-27 at 09:27, Shapira, Yoav wrote:
Hi,
Hmm, I'm not sure if swallowOutput on the DefaultContext works. I've
only used it on a proper Context declaration. What Tomcat version are
you using?
Sorry. That would've helped. It's Tomcat v5.0.28.
If you're saying it should go in
You implemented log4j to log what usually goes into catalina.out?
--
On Wed, 2004-10-27 at 09:34, Ben Souther wrote:
This is how I did it before implementing log4j.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi,
Yeah. System.out is for novices and small apps. Real apps need a real
logging toolkit.
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Ryan Daly [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 9:54 AM
To: Tomcat Users List
Subject: Re: swallowOutput
On Wed, 2004-10-27 at 09:55, Shapira, Yoav wrote:
Hi,
Yeah. System.out is for novices and small apps. Real apps need a real
logging toolkit.
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
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
You have the right idea but in the wrong place. You need to define a Logger for each
Context and put swallowOutput on that.
Context path=/context
override=true
swallowOutput=true
Logger className=org.apache.catalina.logger.FileLogger
prefix=context_log.
: swallowOutput and catalina.out
On Wed, 2004-10-27 at 09:27, Shapira, Yoav wrote:
Hi,
Hmm, I'm not sure if swallowOutput on the DefaultContext works. I've
only used it on a proper Context declaration. What Tomcat version are
you using?
Sorry. That would've helped. It's Tomcat v5.0.28
11 matches
Mail list logo