geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevan Miller <>
Subject Re: XML Log4j configuration
Date Mon, 30 Aug 2010 18:58:56 GMT

On Aug 30, 2010, at 1:51 PM, Mik wrote:

> Thanks - already been there.
> Does not solve my problem :-(
> Basically what I'm after is to configure server logging to use log4j.xml
> instead of (
> I did already try to define a file called log4j.xml & server-log4j.xml, both
> without any luck.

Hi Mik,
The Logger GBean configures the location of the log4j configuration file for the Geronimo
server. I don't know that anyone has ever tried it, but there is some code which seems to
accommodate a .xml file. So, if you're willing to test it out, try the following...

Edit var/config/config.xml, locate the j2ee-system <module> and replace with something
like the following (I'm assuming 2.2, adjust your version numbers appropriately):

    <module name="org.apache.geronimo.framework/j2ee-system/2.2/car">
      <gbean name="Logger">
        <attribute name="configFileName">var/log/server-log4j.xml</attribute>

If that doesn't work, you can look at the following to see what might be going wrong:


View raw message