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 and the fly likes commons-logging with LOG4J LOGGER Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply 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
 
 
subject: commons-logging with LOG4J LOGGER
 
Threads others viewed
struts util PropertyMessageResources?
taglib
logging in JBOSS
Problem with Setting up Jakarta Logging with AXIS
Disabling Tomcat logging to CONSOLE
Two Laptop Bag

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture