http://www.jboss.org/wiki/Wiki.jsp?page=Logging
Using your own log4j.properties file - class loader scoping
i followed above URL.
in default/conf directory i renamed log4j.xml to jboss-log4j.xml;and in
jboss-service.xml i changed log4j.xml to jboss-log4j.xml;
i want to use my own log4j.properties and it is placed in WEB-INF of test.war
directory;
log4j1.2.4.jar placed in WEB-INF/lib directory.i made changes in jboss-web.xml.
<class-loading java2ClassLoadingCompliance='false'>
<loader-repository>test:loader=test.war<loader-repository-config>java2ParentDelegaton=false</loader-repository-config>
</loader-repository>
</class-loading>
log4j.properties
og4j.category.app=info, SESSME
log4j.appender.SESSME=org.apache.log4j.RollingFileAppender
log4j.appender.SESSME.File=${jboss.server.home.dir}/log/std.log
log4j.appender.SESSME.MaxFileSize=5120KB
# Keep ten backup files
log4j.appender.SESSME.MaxBackupIndex=10
log4j.appender.SESSME.layout=org.apache.log4j.PatternLayout
log4j.appender.SESSME.layout.ConversionPattern=%d , %m%n
i have one doubt should i write any java file to read log4j.properties that i
placed in WEB-INF directory or else jboss will automatically read
log4j.properties file
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3903518#3903518
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3903518
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user