This content has been marked as final.
Show 2 replies
-
1. Re: separate log4j.xml deployed in an ear
lyc1 Nov 29, 2003 6:30 AM (in response to sanepid)Try to embed in your EAR a logger service (.sar), with jboss-service.xml which describes your logger service and log4j.xml file wich describes your appenders
Don't forget to declare this service in the application.xml or jboss-app.xml file of the EAR. -
2. Re: separate log4j.xml deployed in an ear
sanepid Dec 8, 2003 2:16 PM (in response to sanepid)Thanks for suggestion
Deploying a logging SAR was my first thought also, but I couldn't figure out how to load my log4j.xml in my ear without overriding the Log4jService class to use the Thread.currentThread().getContextClassLoader().getResourceAsStream(propertyFileName) rather then looking in the conf directory for log4j.xml
Any suggestions on this one
Thanks
Radu