geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s..@geronimo.apache.org
Subject [Apache Geronimo Wiki] Updated: Logging
Date Thu, 11 Nov 2004 22:38:29 GMT
   Date: 2004-11-11T14:38:29
   Editor: TobyCabot <toby@caboteria.org>
   Wiki: Apache Geronimo Wiki
   Page: Logging
   URL: http://wiki.apache.org/geronimo/Logging

   it doesn't appear that geronimo reads log4j.xml anymore

Change Log:

------------------------------------------------------------------------------
@@ -1,37 +1,8 @@
-= Logging. =
+= Logging =
 
-Geronimo logging is controlled by the GBeans declared in the system-plan.xml file.  Unfortunately,
the current admin console does not allow us to change configuration attributes, so I have
temporarily added support for a log4j.xml configuration file.  If you wish to modify our default
logging configuration, simply place a log4j.xml file in the var/log directory of your geronimo
build.  Documentation on log4j and the log4j.xml file can be found [http://logging.apache.org/log4j/docs/documentation.html
here].
+Geronimo logging is configured by three files:
+ * `var/log/client-log4j.properties`
+ * `var/log/deployer-log4j.properties`
+ * `var/log/server-log4j.properties`
 
-The following is a the equivalent of our default logging configuration in xml format:
-    {{{
-<?xml version="1.0" encoding="ISO-8859-1"?>
-
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-
-<log4j:configuration>
-    <appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender">
-        <param name="Threshold" value="INFO"/>
-        <param name="Target" value="System.out"/>
-        <layout class="org.apache.log4j.PatternLayout">
-            <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
-        </layout>
-    </appender>
-
-    <appender name="DailyRollingFileAppender" class="org.apache.log4j.DailyRollingFileAppender">
-        <param name="Threshold" value="DEBUG"/>
-        <param name="Append" value="true"/>
-        <!-- NOTE: this file is relative to the directory from which Geronimo -->
-        <!-- was started, which is not necessarily the Geronimo home directory -->
-        <param name="File" value="yourLogFile.log"/>
-        <layout class="org.apache.log4j.PatternLayout">
-            <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
-        </layout>
-    </appender>
-
-    <root>
-        <priority value ="info"/>
-        <appender-ref ref="ConsoleAppender"/>
-        <appender-ref ref="DailyRollingFileAppender"/>
-    </root>
-</log4j:configuration>
-}}}
+Most likely you'll want to modify the server's configuration which is `server-log4j.properties`.
 It contains a couple of examples, but for complex changes you'll probably want to learn more
about log4j at http://logging.apache.org/log4j/docs/.

Mime
View raw message