This content has been marked as final.
Show 1 reply
-
1. Re: jboss-5.1, changing jboss-log4j.xml on startup (through -D params)
rob_ Dec 7, 2012 8:58 AM (in response to rob_)Found a possible solution to this...
The easiest way seems to be overwriting jboss-service.xml:
<mbean code="org.jboss.logging.Log4jService" name="jboss.system:type=Log4jService,service=Logging" xmbean-dd="resource:xmdesc/Log4jService-xmbean.xml">
<attribute name="ConfigurationURL">${log4j.configuration.XmlFile}</attribute>
[...]
</mbean>
While starting the server I could simply add -Dlog4j.configuration.XmlFile=resource:my-personal-log4j.xml and the server fully pulls it in.
Regs,
Rob