what is the difference between rootCategory and other categories in log4j.properties;
To get logged in prod1.log we access in java files like this; private Log loggeMemory = LogFactory.getLog("com.common.java"); i want to know how to write in java file to get logged in prod.log file? if i use log4j.xml file how to write for rootCategory?? log4j.properties # Root category log4j.rootCategory=debug, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=log/prod.log log4j.appender.R.MaxFileSize=1024KB # Keep forty backup files log4j.appender.R.MaxBackupIndex=4 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%d [%-5p] %c{2} %M.%L - %m%n # Events category log4j.category.com.common.java=debug, E log4j.appender.E=org.apache.log4j.RollingFileAppender log4j.appender.E.File=log/prod1.log log4j.appender.E.MaxFileSize=512KB log4j.appender.E.MaxBackupIndex=1 log4j.appender.E.layout=org.apache.log4j.PatternLayout log4j.appender.E.layout.ConversionPattern=%d [%-5p] %c{2} %M.%L - %m%n View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3911656#3911656 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3911656 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user