This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
taglib
Disabling Tomcat logging to CONSOLE
struts util PropertyMessageResources?
Problem with Setting up Jakarta Logging with AXIS
logging in JBOSS