THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Include an ApplicationLog4jConfigurationGBean in your application plan, like this:
You can also use a log4j.properties file in your classpath, but for example, inCode Block <gbean name="DirectoryLog4jConfiguration" class="org.apache.geronimo.system.logging.log4j.ApplicationLog4jConfigurationGBean"> <attribute name="log4jFile">var/directory/log4j.properties</attribute> <reference name="ServerInfo"><name>ServerInfo</name></reference> </gbean>
WEB-INF/classes/META-INF
. (If you prefer not to place this file underWEB-INF/classes/
, the path of this file must be added to your classpath). But this will obstruct anyone trying to configure logging as the file will remain packed in your application somewhere hard to find: .Code Block <gbean name="DirectoryLog4jConfiguration" class="org.apache.geronimo.system.logging.log4j.ApplicationLog4jConfigurationGBean"> <attribute name="log4jResource">META-INF/log4j.properties</attribute> </gbean>
...