File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes commons-logging with LOG4J LOGGER Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "commons-logging with LOG4J LOGGER" Watch "commons-logging with LOG4J LOGGER" New topic
Author

commons-logging with LOG4J LOGGER

siva kumar
Ranch Hand

Joined: Sep 03, 2004
Posts: 86
how to configure the commons-logging for JOBSS.

I'M HAVINg commons-logging.properties and log4j.properties under WEB-INF\CLASSES.i'm using the RollingFileAppender.but the logging messages are displayed on the console window.
here the two properties file.
//commons-logging.properties
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
log4j.configuration=log4j.properties
//log4j.properties

log4j.rootLogger=DEBUG,R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=c:/logfile.log
log4j.appender.R.MaxFileSize=500kB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d{ISO8601} %p %c[%t] - %m%n
log4j.appender.R.append=true
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: commons-logging with LOG4J LOGGER