logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: log4j logging on Tomcat: Basic Question
Date Mon, 06 Mar 2006 03:52:09 GMT
As far as I can tell, you aren't assigning the "R" appender to any 
logger.  Was that just an oversight or did you expect something to happen 
simply by defining the "R" appender?


At 04:04 PM 3/5/2006 -0800, you wrote:
 >I am trying to use log4j for my application which uses
 >Tomcat 5.5.8 and had two JSPs and frew class files.
 >I instantiate logger as follows:
 >//Exp is in package edu.uta.util
 >final static Logger log = Logger.getLogger(Exp.class);
 >My log4j.properties file is in common/classes folder
 >and has these entries:
 >log4j.rootCategory=INFO, stdout
 >log4j.appender.stdout.layout.ConversionPattern=CBS %p:
 >%C{1}.%M(%L) | %m%n
 >log4j.appender.R.layout.ConversionPattern=%t %c - %m%n
 >When I use log.info("*** log test"); I get the
 >properly formatted output in catalina.out but the file
 >CBS.log is not created.
 >I've log4j.jar in C:/tomcat-5.5.8/shared/lib
 >Am I making a mistake somwhere?
 >Do You Yahoo!?
 >Tired of spam?  Yahoo! Mail has the best spam protection around
 >To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
 >For additional commands, e-mail: log4j-user-help@logging.apache.org

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

View raw message