...
Geronimo uses log4j for logging and the base log4j configuration is in var/log/server-log4j.properties
. If your application also uses log4j for logging you can configure logging in this file. However, this is not self-contained. Instead, you can configure log4j settings specific to your application in your application plugin.
Note that in any case, unless you use hidden<hidden-classes classes> or inverse<inverse-classloading classloading> to load your own copy of log4j separate from the geronimo copy, log4j will not automatically read any log4j.properties files you may have included in your classpath.
If you want to use different configuration file for server logging
The configuration file server-log4j.properties
is hard-coded in config.ser
and cannot be updated via config.xml
. However, you can swap the default server-log4j.properties
file by overriding system property org.apache.geronimo.log4jservice.configuration
as followed:
Panel | ||
---|---|---|
| ||
export GERONIMO_OPTS=-Dorg.apache.geronimo.log4jservice.configuration=$GERONIMO_HOME/var/log/server-log4j.xml |
If you are building your own application:
...