geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Apache Geronimo Wiki] Updated: Logging
Date Wed, 29 Dec 2004 22:29:44 GMT
   Date: 2004-12-29T14:29:44
   Editor: TobyCabot
   Wiki: Apache Geronimo Wiki
   Page: Logging

   added a note about changing the default config files

Change Log:

@@ -6,3 +6,16 @@
  * `var/log/`
 Most likely you'll want to modify the server's configuration which is ``.
 It contains a couple of examples, but for complex changes you'll probably want to learn more
about log4j at
+If you prefer XML, or want Geronimo to read its log configuration files from a different
place then you can hack `modules/assembly/src/plan/system-plan.xml` and rebuild Geronimo.
 Look for the gbean element whose name attribute value is "geronimo.system:role=Logger". 
For example:
+ {{{
+<!-- Logging service -->
+<gbean name="geronimo.system:role=Logger" class="org.apache.geronimo.system.logging.log4j.Log4jService">
+    <attribute name="configurationFile">/etc/geronimo/log4j.xml</attribute>
+    <attribute name="refreshPeriod">60</attribute>
+    <reference name="ServerInfo">geronimo.system:role=ServerInfo</reference>
+This will use `/etc/geronimo/log4j.xml` instead of the default.

View raw message