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 no effect).


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to