tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: commons-logging not working [was log4j not working]
Date Thu, 05 Jun 2003 16:36:28 GMT

You are using commons-logging and not log4j directly.  Please don't state 
that log4j isn't working when you aren't using it directly.  I don't have 
the slightest clue of how to get your commons-logging config working, but 
one fix is to dump commons-logging and use log4j directly.  You will have 
far fewer problems.  See http://www.qos.ch/logging/thinkAgain.html .

Jake


At 09:54 AM 6/5/2003 +0200, you wrote:
>Hi all,
>
>I'm trying to use the Log4J package in my webapplication.
>Therefore I placed the file log4j.properties in WEB-INF/classes which
>looks like this:
>
>log4j.rootLogger = DEBUG, stdout, rolling
>log4j.appender.stdout = ConsoleAppender
>log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
>log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
>
>log4j.appender.rolling=org.apache.log4j.RollingFileAppender
>log4j.appender.rolling.File=/var/ordermanager/log/ordermanager.log
>log4j.appender.rolling.MaxFileSize=100KB
>log4j.appender.rolling.MaxBackupIndex=1
>log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
>log4j.appender.rolling.layout.ConversionPattern=%d{ABSOLUTE} - %p %c -
>%m%n
>
>
>I also have a file commons-logging.properties which contains:
>org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JCategoryLog
>
>(B.t.w. I also tried to remove this file (commons-logging.properties)
>which has affect).
>
>
>In my Actions I have code like this:
>
>Log log = LogFactory.getLog(BasicAction.class);
>
>if (log.isInfoEnabled()) {
>         log.info("Log test!");
>}
>
>I'm using JBoss with integrated Tomcat 4.1 (on linux). In the JBoss log I
>see:
>
>09:51:52,853 INFO  [OrdermanagerBaseAction] OrderManagerBaseAction called!
>
>But, nothing appears in /var/ordermanager/log/ordermanager.log
>
>Permissions, etc are all okay....
>
>What could be wrong here?
>
>Many thanks,
>
>Harm de Laat
>Informatiefabriek
>The Netherlands
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message