morciuch 2002/12/17 13:15:28
Modified: docs/site changes.html config_guide.html install.html
webapp/WEB-INF/conf TurbineResources.properties
xdocs changes.xml config_guide.xml install.xml
Log:
Fixed rotation logger settings (see Bugzilla issue# 15448)
Revision Changes Path
1.85 +3 -1 jakarta-jetspeed/docs/site/changes.html
Index: changes.html
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/docs/site/changes.html,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -r1.84 -r1.85
--- changes.html 16 Dec 2002 04:23:33 -0000 1.84
+++ changes.html 17 Dec 2002 21:15:28 -0000 1.85
@@ -5,7 +5,6 @@
<!-- start the processing -->
<!-- ====================================================================== -->
- <!-- GENERATED FILE, DO NOT EDIT, EDIT THE XML FILE IN xdocs INSTEAD! -->
<!-- Main Page Section -->
<!-- ====================================================================== -->
<html>
@@ -133,6 +132,9 @@
action (add/remove/update/fix) - [Bug # xxx -] date - description (committer's
initials) [Thanks to developer_name]
</li>
-->
+<li>
+ Fixed - Bug # 15448 - 2002/12/17 - Fixed rotation logger settings (MO)
+</li>
</ul>
</blockquote>
</p>
1.25 +93 -66 jakarta-jetspeed/docs/site/config_guide.html
Index: config_guide.html
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/docs/site/config_guide.html,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- config_guide.html 16 Dec 2002 03:52:32 -0000 1.24
+++ config_guide.html 17 Dec 2002 21:15:28 -0000 1.25
@@ -5,7 +5,6 @@
<!-- start the processing -->
<!-- ====================================================================== -->
- <!-- GENERATED FILE, DO NOT EDIT, EDIT THE XML FILE IN xdocs INSTEAD! -->
<!-- Main Page Section -->
<!-- ====================================================================== -->
<html>
@@ -291,16 +290,16 @@
</p>
<table>
<tr>
- <th bgcolor="#039acc" colspan="" rowspan="" valign="top"
align="left">
+ <td bgcolor="#039acc" colspan="" rowspan="" valign="top"
align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Value
</font>
-</th>
- <th bgcolor="#039acc" colspan="" rowspan=""
valign="top" align="left">
+</td>
+ <td bgcolor="#039acc" colspan="" rowspan=""
valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Description
</font>
-</th>
+</td>
</tr>
<tr>
<td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top"
align="left">
@@ -534,16 +533,16 @@
</p>
<table>
<tr>
- <th bgcolor="#039acc" colspan="" rowspan="" valign="top"
align="left">
+ <td bgcolor="#039acc" colspan="" rowspan="" valign="top"
align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Facility
</font>
-</th>
- <th bgcolor="#039acc" colspan="" rowspan=""
valign="top" align="left">
+</td>
+ <td bgcolor="#039acc" colspan="" rowspan=""
valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Description
</font>
-</th>
+</td>
</tr>
<tr>
<td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top"
align="left">
@@ -555,7 +554,28 @@
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Rotation of log files. This will limit the amount of disk space
- consumed by the log file. Not supported by all loggers.
+ consumed by the log file. Not supported by all loggers. To enable this
+ logger, you must replace "logforj" with "rotation" on the facilities
list
+ and set default logger to "rotation". Please check log4j documentation
+ for information on various appenders that can be used here (i.e.
+ RollingFileAppender vs. DailyRollingFileAppender).
+
+ </font>
+</td>
+ </tr>
+ <tr>
+ <td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top"
align="left">
+ <font color="#000000" size="-1" face="arial,helvetica,sanserif">
+ debug
+ </font>
+</td>
+ <td bgcolor="#a0ddf0" colspan="" rowspan=""
valign="top" align="left">
+ <font color="#000000" size="-1" face="arial,helvetica,sanserif">
+
+ This logger sends log messages to both console and log file. It is
useful
+ for testing and debugging but is not appropriate for production use.
+ To enable this logger, you must add "debug" to the facilities list
+ and set default logger to "debug".
</font>
</td>
@@ -637,16 +657,16 @@
</p>
<table>
<tr>
- <th bgcolor="#039acc" colspan="" rowspan="" valign="top"
align="left">
+ <td bgcolor="#039acc" colspan="" rowspan="" valign="top"
align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Facility
</font>
-</th>
- <th bgcolor="#039acc" colspan="" rowspan=""
valign="top" align="left">
+</td>
+ <td bgcolor="#039acc" colspan="" rowspan=""
valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Description
</font>
-</th>
+</td>
</tr>
<tr>
<td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top"
align="left">
@@ -777,22 +797,23 @@
</li>
<li>
When using log file rotation, the rotation facility must be the first
in the
- <tt>services.LoggingService.facilities</tt> list.
+ <tt>services.LoggingService.facilities</tt> list and should replace
the logforj
+ facility.
</li>
</ul>
</p>
<table>
<tr>
- <th bgcolor="#039acc" colspan="" rowspan="" valign="top"
align="left">
+ <td bgcolor="#039acc" colspan="" rowspan="" valign="top"
align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Facility
</font>
-</th>
- <th bgcolor="#039acc" colspan="" rowspan=""
valign="top" align="left">
+</td>
+ <td bgcolor="#039acc" colspan="" rowspan=""
valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Description
</font>
-</th>
+</td>
</tr>
<tr>
<td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top"
align="left">
@@ -860,34 +881,7 @@
<tr>
<td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top"
align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
- destination.console
- </font>
-</td>
- <td bgcolor="#a0ddf0" colspan="" rowspan=""
valign="top" align="left">
- <font color="#000000" size="-1" face="arial,helvetica,sanserif">
- Optional, default = false <br />
- <table>
- <tr>
- <th>Value</th>
- <th>Description</th>
- </tr>
- <tr>
- <td>false</td>
- <td>message will NOT be sent to the console</td>
- </tr>
- <tr>
- <td>true</td>
- <td>message will ALSO be sent to the console</td>
- </tr>
- </table>
-
- </font>
-</td>
- </tr>
- <tr>
- <td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top"
align="left">
- <font color="#000000" size="-1" face="arial,helvetica,sanserif">
- file.size
+ MaxFileSize
</font>
</td>
<td bgcolor="#a0ddf0" colspan="" rowspan=""
valign="top" align="left">
@@ -899,7 +893,7 @@
<tr>
<td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top"
align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
- file.backups
+ MaxBackupIndex
</font>
</td>
<td bgcolor="#a0ddf0" colspan="" rowspan=""
valign="top" align="left">
@@ -933,16 +927,16 @@
</p>
<table>
<tr>
- <th bgcolor="#039acc" colspan="" rowspan="" valign="top"
align="left">
+ <td bgcolor="#039acc" colspan="" rowspan="" valign="top"
align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Property
</font>
-</th>
- <th bgcolor="#039acc" colspan="" rowspan=""
valign="top" align="left">
+</td>
+ <td bgcolor="#039acc" colspan="" rowspan=""
valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Description
</font>
-</th>
+</td>
</tr>
<tr>
<td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top"
align="left">
@@ -1042,45 +1036,45 @@
#
# destination.file: A path relative to the web app root
# -------------------------------------------------------------------
-services.LoggingService.facilities=rotation,system,debug,logforj,access
-services.LoggingService.default=rotation
+services.LoggingService.facilities=logforj,access
+services.LoggingService.default=logforj
services.LoggingService.loggingConfig=org.apache.turbine.services.logging.PropertiesLoggingConfig
# A facility for system logging.
services.LoggingService.system.destination.file=/WEB-INF/log/jetspeed.log
-services.LoggingService.system.className=org.apache.turbine.services.logging.Log4JavaLogger
+services.LoggingService.system.className=org.apache.turbine.services.logging.FileLogger
services.LoggingService.system.level=DEBUG
# A facility for the scheduler service
# To disable started/stopped messages set the level to ERROR
services.LoggingService.scheduler.destination.file=/WEB-INF/log/jetspeed.log
-services.LoggingService.scheduler.className=org.apache.turbine.services.logging.Log4JavaLogger
+services.LoggingService.scheduler.className=org.apache.turbine.services.logging.FileLogger
services.LoggingService.scheduler.level=DEBUG
# A facility for debugging applications. Messages will go both
# to the log file and the server console.
services.LoggingService.debug.destination.file=/WEB-INF/log/jetspeed.log
services.LoggingService.debug.destination.console=true
-services.LoggingService.debug.className=org.apache.turbine.services.logging.Log4JavaLogger
+services.LoggingService.debug.className=org.apache.turbine.services.logging.FileLogger
services.LoggingService.debug.level=DEBUG
# A facility for SQL query logging
# To enable SQL query logging, set the level to DEBUG
services.LoggingService.sql.destination.file=/WEB-INF/log/jetspeed.log
-services.LoggingService.sql.className=org.apache.turbine.services.logging.Log4JavaLogger
+services.LoggingService.sql.className=org.apache.turbine.services.logging.FileLogger
services.LoggingService.sql.level=DEBUG
# A facility for security audit. NOTE! As of 23 Jan 2001
# Turbine does not have any standard security auditing
# functionality. It's up to your application.
services.LoggingService.security.destination.file=/WEB-INF/log/jetspeed.log
-services.LoggingService.security.className=org.apache.turbine.services.logging.Log4JavaLogger
+services.LoggingService.security.className=org.apache.turbine.services.logging.FileLogger
services.LoggingService.security.level=DEBUG
# An example configuration for using Log4Java, with log4j properties inline
# The category name - at the end of this line - needs to match the logging facility
name - the first log4j.
# need this rootCategory entry to capture the torque/fulcrum etc logging
-services.LoggingService.logforj.log4j.rootCategory = INFO, logforj, access
+services.LoggingService.logforj.log4j.rootCategory = INFO, logforj
# need this category entry for the actual jetspeed logging (I don't know why it
doesn't get covered by the root category!)
services.LoggingService.logforj.log4j.category.logforj = DEBUG, logforj
@@ -1095,21 +1089,54 @@
# An example configuration for portlet access audit logging
services.LoggingService.access.log4j.category.access = INFO, access
-services.LoggingService.access.log4j.appender.access.file =
${webappRoot}/WEB-INF/log/access.log
services.LoggingService.access.log4j.appender.access = org.apache.log4j.FileAppender
services.LoggingService.access.log4j.appender.access.layout =
org.apache.log4j.PatternLayout
services.LoggingService.access.log4j.appender.access.layout.ConversionPattern = %m%n
services.LoggingService.access.log4j.appender.access.append = true
+services.LoggingService.access.log4j.appender.access.file =
${webappRoot}/WEB-INF/log/access.log
services.LoggingService.access.className =
org.apache.turbine.services.logging.Log4JavaLogger
services.LoggingService.access.level = INFO
# An example configuration for automatic log rotation using Log4Java
# This will keep the log file size under 1MB and save up to 5 backup copies
-services.LoggingService.rotation.destination.file=/WEB-INF/log/jetspeed.log
-services.LoggingService.rotation.file.size=1048576
-services.LoggingService.rotation.file.backups=5
-services.LoggingService.rotation.className=org.apache.turbine.services.logging.Log4JavaLogger
-services.LoggingService.rotation.level=DEBUG
+services.LoggingService.rotation.log4j.rootCategory = INFO, rotation
+services.LoggingService.rotation.log4j.category.rotation = DEBUG, rotation
+
+services.LoggingService.rotation.log4j.appender.rotation.file =
${webappRoot}/WEB-INF/log/jetspeed.log
+services.LoggingService.rotation.log4j.appender.rotation =
org.apache.log4j.RollingFileAppender
+services.LoggingService.rotation.log4j.appender.rotation.layout =
org.apache.log4j.PatternLayout
+services.LoggingService.rotation.log4j.appender.rotation.layout.conversionPattern =
[%d{dd MMM yyyy HH:mm:ss} %5p] - %m%n
+services.LoggingService.rotation.log4j.appender.rotation.append = false
+services.LoggingService.rotation.log4j.appender.rotation.MaxFileSize = 1024KB
+services.LoggingService.rotation.log4j.appender.rotation.MaxBackupIndex = 5
+services.LoggingService.rotation.className =
org.apache.turbine.services.logging.Log4JavaLogger
+services.LoggingService.rotation.level = DEBUG
+
+# An example configuration for using *NIX syslogd with Log4Java
+services.LoggingService.syslog.destination.syslogd.host=my.syslog.server.com
+services.LoggingService.syslog.destination.syslogd.facility=LOG_DAEMON
+services.LoggingService.syslog.className=org.apache.turbine.services.logging.Log4JavaLogger
+services.LoggingService.syslog.level=INFO
+
+# An example configuration for using remote Log4Java server
+services.LoggingService.remote.destination.remote.host=my.remote.server.com
+services.LoggingService.remote.destination.remote.port=1099
+services.LoggingService.remote.className=org.apache.turbine.services.logging.Log4JavaLogger
+services.LoggingService.remote.level=INFO
+
+# An example configuration for sending error reports as email with Log4Java
+# notes:
+# * uses 'mail.server' as SMTP server to send mail through
+# * log4j will send the email when an ERROR is logged, with
+# 'buffer.size' previous (non-ERROR) logs included in the email
+# * configured to log to a file as well otherwise stacktraces are lost
+services.LoggingService.email.destination.file=/WEB-INF/log/jetspeed.log
+services.LoggingService.email.destination.email.from=root@localhost
+services.LoggingService.email.destination.email.to=root@localhost
+services.LoggingService.email.destination.email.subject=Jetspeed Error Report
+services.LoggingService.email.destination.email.buffer.size=512
+services.LoggingService.email.className=org.apache.turbine.services.logging.Log4JavaLogger
+services.LoggingService.email.level=INFO
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
1.37 +17 -18 jakarta-jetspeed/docs/site/install.html
Index: install.html
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/docs/site/install.html,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- install.html 16 Dec 2002 04:23:33 -0000 1.36
+++ install.html 17 Dec 2002 21:15:28 -0000 1.37
@@ -5,7 +5,6 @@
<!-- start the processing -->
<!-- ====================================================================== -->
- <!-- GENERATED FILE, DO NOT EDIT, EDIT THE XML FILE IN xdocs INSTEAD! -->
<!-- Main Page Section -->
<!-- ====================================================================== -->
<html>
@@ -179,7 +178,7 @@
<a
href="http://java.sun.com/products/jndi/">Java Naming and Directory Interface
(JNDI)</a>
</li>
<li>
- <a
href="http://java.sun.com/products/jndi/">JavaBeans Activation Framework (JAF)</a> -
included in JDK 1.2 Enterprise Edition</li>
+ <a
href="http://java.sun.com/products/javabeans/glasgow/jaf.html">JavaBeans Activation
Framework (JAF)</a> - included in JDK 1.2 Enterprise Edition</li>
</ul>
</li>
</ul>
@@ -213,16 +212,16 @@
</p>
<table>
<tr>
- <th bgcolor="#039acc" colspan="" rowspan="" valign="top"
align="left">
+ <td bgcolor="#039acc" colspan="" rowspan="" valign="top"
align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Release 1.4b3 (Latest) - December 15, 2002
</font>
-</th>
- <th bgcolor="#039acc" colspan="" rowspan=""
valign="top" align="left">
+</td>
+ <td bgcolor="#039acc" colspan="" rowspan=""
valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Download From:
</font>
-</th>
+</td>
</tr>
<tr>
<td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top"
align="left">
@@ -256,16 +255,16 @@
<br />
<table>
<tr>
- <th bgcolor="#039acc" colspan="" rowspan="" valign="top"
align="left">
+ <td bgcolor="#039acc" colspan="" rowspan="" valign="top"
align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Release 1.4b2 - December 9, 2002
</font>
-</th>
- <th bgcolor="#039acc" colspan="" rowspan=""
valign="top" align="left">
+</td>
+ <td bgcolor="#039acc" colspan="" rowspan=""
valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Download From:
</font>
-</th>
+</td>
</tr>
<tr>
<td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top"
align="left">
@@ -299,16 +298,16 @@
<br />
<table>
<tr>
- <th bgcolor="#039acc" colspan="" rowspan="" valign="top"
align="left">
+ <td bgcolor="#039acc" colspan="" rowspan="" valign="top"
align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Release 1.4b1
</font>
-</th>
- <th bgcolor="#039acc" colspan="" rowspan=""
valign="top" align="left">
+</td>
+ <td bgcolor="#039acc" colspan="" rowspan=""
valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Download From:
</font>
-</th>
+</td>
</tr>
<tr>
<td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top"
align="left">
@@ -356,16 +355,16 @@
<br />
<table>
<tr>
- <th bgcolor="#039acc" colspan="" rowspan="" valign="top"
align="left">
+ <td bgcolor="#039acc" colspan="" rowspan="" valign="top"
align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Release 1.3a2
</font>
-</th>
- <th bgcolor="#039acc" colspan="" rowspan=""
valign="top" align="left">
+</td>
+ <td bgcolor="#039acc" colspan="" rowspan=""
valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Download From:
</font>
-</th>
+</td>
</tr>
<tr>
<td bgcolor="#a0ddf0" colspan="" rowspan="" valign="top"
align="left">
1.65 +14 -7 jakarta-jetspeed/webapp/WEB-INF/conf/TurbineResources.properties
Index: TurbineResources.properties
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed/webapp/WEB-INF/conf/TurbineResources.properties,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- TurbineResources.properties 15 Nov 2002 22:02:50 -0000 1.64
+++ TurbineResources.properties 17 Dec 2002 21:15:28 -0000 1.65
@@ -19,7 +19,7 @@
#
# destination.file: A path relative to the web app root
# -------------------------------------------------------------------
-services.LoggingService.facilities=system,debug,security,rotation,logforj,access
+services.LoggingService.facilities=logforj,access
services.LoggingService.default=logforj
services.LoggingService.loggingConfig=org.apache.turbine.services.logging.PropertiesLoggingConfig
@@ -82,11 +82,18 @@
# An example configuration for automatic log rotation using Log4Java
# This will keep the log file size under 1MB and save up to 5 backup copies
-services.LoggingService.rotation.destination.file=/WEB-INF/log/jetspeed.log
-services.LoggingService.rotation.file.size=1048576
-services.LoggingService.rotation.file.backups=5
-services.LoggingService.rotation.className=org.apache.turbine.services.logging.Log4JavaLogger
-services.LoggingService.rotation.level=DEBUG
+services.LoggingService.rotation.log4j.rootCategory = INFO, rotation
+services.LoggingService.rotation.log4j.category.rotation = DEBUG, rotation
+
+services.LoggingService.rotation.log4j.appender.rotation.file =
${webappRoot}/WEB-INF/log/jetspeed.log
+services.LoggingService.rotation.log4j.appender.rotation =
org.apache.log4j.RollingFileAppender
+services.LoggingService.rotation.log4j.appender.rotation.layout =
org.apache.log4j.PatternLayout
+services.LoggingService.rotation.log4j.appender.rotation.layout.conversionPattern =
[%d{dd MMM yyyy HH:mm:ss} %5p] - %m%n
+services.LoggingService.rotation.log4j.appender.rotation.append = false
+services.LoggingService.rotation.log4j.appender.rotation.MaxFileSize = 1024KB
+services.LoggingService.rotation.log4j.appender.rotation.MaxBackupIndex = 5
+services.LoggingService.rotation.className =
org.apache.turbine.services.logging.Log4JavaLogger
+services.LoggingService.rotation.level = DEBUG
# An example configuration for using *NIX syslogd with Log4Java
services.LoggingService.syslog.destination.syslogd.host=my.syslog.server.com
1.103 +4 -1 jakarta-jetspeed/xdocs/changes.xml
Index: changes.xml
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/xdocs/changes.xml,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -r1.102 -r1.103
--- changes.xml 16 Dec 2002 04:09:49 -0000 1.102
+++ changes.xml 17 Dec 2002 21:15:28 -0000 1.103
@@ -22,6 +22,9 @@
action (add/remove/update/fix) - [Bug # xxx -] date - description (committer's
initials) [Thanks to developer_name]
</li>
-->
+<li>
+ Fixed - Bug # 15448 - 2002/12/17 - Fixed rotation logger settings (MO)
+</li>
</ul>
</section>
1.15 +65 -37 jakarta-jetspeed/xdocs/config_guide.xml
Index: config_guide.xml
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/xdocs/config_guide.xml,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- config_guide.xml 9 Dec 2002 02:00:43 -0000 1.14
+++ config_guide.xml 17 Dec 2002 21:15:28 -0000 1.15
@@ -261,7 +261,20 @@
<td>rotation</td>
<td>
Rotation of log files. This will limit the amount of disk space
- consumed by the log file. Not supported by all loggers.
+ consumed by the log file. Not supported by all loggers. To enable this
+ logger, you must replace "logforj" with "rotation" on the facilities
list
+ and set default logger to "rotation". Please check log4j documentation
+ for information on various appenders that can be used here (i.e.
+ RollingFileAppender vs. DailyRollingFileAppender).
+ </td>
+ </tr>
+ <tr>
+ <td>debug</td>
+ <td>
+ This logger sends log messages to both console and log file. It is
useful
+ for testing and debugging but is not appropriate for production use.
+ To enable this logger, you must add "debug" to the facilities list
+ and set default logger to "debug".
</td>
</tr>
<tr>
@@ -384,7 +397,8 @@
</li>
<li>
When using log file rotation, the rotation facility must be the first
in the
- <tt>services.LoggingService.facilities</tt> list.
+ <tt>services.LoggingService.facilities</tt> list and should replace
the logforj
+ facility.
</li>
</ul>
</p>
@@ -433,30 +447,11 @@
</td>
</tr>
<tr>
- <td>destination.console</td>
- <td>Optional, default = false <br/>
- <table>
- <tr>
- <th>Value</th>
- <th>Description</th>
- </tr>
- <tr>
- <td>false</td>
- <td>message will NOT be sent to the console</td>
- </tr>
- <tr>
- <td>true</td>
- <td>message will ALSO be sent to the console</td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td>file.size</td>
+ <td>MaxFileSize</td>
<td>Approximate log file size in bytes. 1MB = 1048576 bytes</td>
</tr>
<tr>
- <td>file.backups</td>
+ <td>MaxBackupIndex</td>
<td>
Number of backup log files to maintain. The actual number of log
files
will be file.backups + 1.
@@ -516,45 +511,45 @@
#
# destination.file: A path relative to the web app root
# -------------------------------------------------------------------
-services.LoggingService.facilities=rotation,system,debug,logforj,access
-services.LoggingService.default=rotation
+services.LoggingService.facilities=logforj,access
+services.LoggingService.default=logforj
services.LoggingService.loggingConfig=org.apache.turbine.services.logging.PropertiesLoggingConfig
# A facility for system logging.
services.LoggingService.system.destination.file=/WEB-INF/log/jetspeed.log
-services.LoggingService.system.className=org.apache.turbine.services.logging.Log4JavaLogger
+services.LoggingService.system.className=org.apache.turbine.services.logging.FileLogger
services.LoggingService.system.level=DEBUG
# A facility for the scheduler service
# To disable started/stopped messages set the level to ERROR
services.LoggingService.scheduler.destination.file=/WEB-INF/log/jetspeed.log
-services.LoggingService.scheduler.className=org.apache.turbine.services.logging.Log4JavaLogger
+services.LoggingService.scheduler.className=org.apache.turbine.services.logging.FileLogger
services.LoggingService.scheduler.level=DEBUG
# A facility for debugging applications. Messages will go both
# to the log file and the server console.
services.LoggingService.debug.destination.file=/WEB-INF/log/jetspeed.log
services.LoggingService.debug.destination.console=true
-services.LoggingService.debug.className=org.apache.turbine.services.logging.Log4JavaLogger
+services.LoggingService.debug.className=org.apache.turbine.services.logging.FileLogger
services.LoggingService.debug.level=DEBUG
# A facility for SQL query logging
# To enable SQL query logging, set the level to DEBUG
services.LoggingService.sql.destination.file=/WEB-INF/log/jetspeed.log
-services.LoggingService.sql.className=org.apache.turbine.services.logging.Log4JavaLogger
+services.LoggingService.sql.className=org.apache.turbine.services.logging.FileLogger
services.LoggingService.sql.level=DEBUG
# A facility for security audit. NOTE! As of 23 Jan 2001
# Turbine does not have any standard security auditing
# functionality. It's up to your application.
services.LoggingService.security.destination.file=/WEB-INF/log/jetspeed.log
-services.LoggingService.security.className=org.apache.turbine.services.logging.Log4JavaLogger
+services.LoggingService.security.className=org.apache.turbine.services.logging.FileLogger
services.LoggingService.security.level=DEBUG
# An example configuration for using Log4Java, with log4j properties inline
# The category name - at the end of this line - needs to match the logging facility
name - the first log4j.
# need this rootCategory entry to capture the torque/fulcrum etc logging
-services.LoggingService.logforj.log4j.rootCategory = INFO, logforj, access
+services.LoggingService.logforj.log4j.rootCategory = INFO, logforj
# need this category entry for the actual jetspeed logging (I don't know why it
doesn't get covered by the root category!)
services.LoggingService.logforj.log4j.category.logforj = DEBUG, logforj
@@ -569,21 +564,54 @@
# An example configuration for portlet access audit logging
services.LoggingService.access.log4j.category.access = INFO, access
-services.LoggingService.access.log4j.appender.access.file =
${webappRoot}/WEB-INF/log/access.log
services.LoggingService.access.log4j.appender.access = org.apache.log4j.FileAppender
services.LoggingService.access.log4j.appender.access.layout =
org.apache.log4j.PatternLayout
services.LoggingService.access.log4j.appender.access.layout.ConversionPattern = %m%n
services.LoggingService.access.log4j.appender.access.append = true
+services.LoggingService.access.log4j.appender.access.file =
${webappRoot}/WEB-INF/log/access.log
services.LoggingService.access.className =
org.apache.turbine.services.logging.Log4JavaLogger
services.LoggingService.access.level = INFO
# An example configuration for automatic log rotation using Log4Java
# This will keep the log file size under 1MB and save up to 5 backup copies
-services.LoggingService.rotation.destination.file=/WEB-INF/log/jetspeed.log
-services.LoggingService.rotation.file.size=1048576
-services.LoggingService.rotation.file.backups=5
-services.LoggingService.rotation.className=org.apache.turbine.services.logging.Log4JavaLogger
-services.LoggingService.rotation.level=DEBUG
+services.LoggingService.rotation.log4j.rootCategory = INFO, rotation
+services.LoggingService.rotation.log4j.category.rotation = DEBUG, rotation
+
+services.LoggingService.rotation.log4j.appender.rotation.file =
${webappRoot}/WEB-INF/log/jetspeed.log
+services.LoggingService.rotation.log4j.appender.rotation =
org.apache.log4j.RollingFileAppender
+services.LoggingService.rotation.log4j.appender.rotation.layout =
org.apache.log4j.PatternLayout
+services.LoggingService.rotation.log4j.appender.rotation.layout.conversionPattern =
[%d{dd MMM yyyy HH:mm:ss} %5p] - %m%n
+services.LoggingService.rotation.log4j.appender.rotation.append = false
+services.LoggingService.rotation.log4j.appender.rotation.MaxFileSize = 1024KB
+services.LoggingService.rotation.log4j.appender.rotation.MaxBackupIndex = 5
+services.LoggingService.rotation.className =
org.apache.turbine.services.logging.Log4JavaLogger
+services.LoggingService.rotation.level = DEBUG
+
+# An example configuration for using *NIX syslogd with Log4Java
+services.LoggingService.syslog.destination.syslogd.host=my.syslog.server.com
+services.LoggingService.syslog.destination.syslogd.facility=LOG_DAEMON
+services.LoggingService.syslog.className=org.apache.turbine.services.logging.Log4JavaLogger
+services.LoggingService.syslog.level=INFO
+
+# An example configuration for using remote Log4Java server
+services.LoggingService.remote.destination.remote.host=my.remote.server.com
+services.LoggingService.remote.destination.remote.port=1099
+services.LoggingService.remote.className=org.apache.turbine.services.logging.Log4JavaLogger
+services.LoggingService.remote.level=INFO
+
+# An example configuration for sending error reports as email with Log4Java
+# notes:
+# * uses 'mail.server' as SMTP server to send mail through
+# * log4j will send the email when an ERROR is logged, with
+# 'buffer.size' previous (non-ERROR) logs included in the email
+# * configured to log to a file as well otherwise stacktraces are lost
+services.LoggingService.email.destination.file=/WEB-INF/log/jetspeed.log
+services.LoggingService.email.destination.email.from=root@localhost
+services.LoggingService.email.destination.email.to=root@localhost
+services.LoggingService.email.destination.email.subject=Jetspeed Error Report
+services.LoggingService.email.destination.email.buffer.size=512
+services.LoggingService.email.className=org.apache.turbine.services.logging.Log4JavaLogger
+services.LoggingService.email.level=INFO
</source>
</subsection>
1.31 +1 -1 jakarta-jetspeed/xdocs/install.xml
Index: install.xml
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/xdocs/install.xml,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- install.xml 16 Dec 2002 03:49:26 -0000 1.30
+++ install.xml 17 Dec 2002 21:15:28 -0000 1.31
@@ -57,7 +57,7 @@
<a
href="http://java.sun.com/products/jndi/">Java Naming and Directory Interface
(JNDI)</a>
</li>
<li>
- <a
href="http://java.sun.com/products/jndi/">JavaBeans Activation Framework (JAF)</a> -
included in JDK 1.2 Enterprise Edition</li>
+ <a
href="http://java.sun.com/products/javabeans/glasgow/jaf.html">JavaBeans Activation
Framework (JAF)</a> - included in JDK 1.2 Enterprise Edition</li>
</ul>
</li>
</ul>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>