You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2002/02/05 18:21:16 UTC
cvs commit: xml-cocoon2/src/webapp/WEB-INF logkit.xconf
vgritsenko 02/02/05 09:21:16
Modified: src/webapp/WEB-INF logkit.xconf
Log:
change defaults. add some comments.
Revision Changes Path
1.5 +17 -22 xml-cocoon2/src/webapp/WEB-INF/logkit.xconf
Index: logkit.xconf
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/webapp/WEB-INF/logkit.xconf,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- logkit.xconf 29 Jan 2002 19:55:32 -0000 1.4
+++ logkit.xconf 5 Feb 2002 17:21:16 -0000 1.5
@@ -13,13 +13,23 @@
<format type="cocoon">
%7.7{priority} %{time} [%{category}] (%{uri}) %{thread}/%{class:short}: %{message}\n%{throwable}
</format>
- <append>true</append>
+ <!--
+ append=false: Will override existing log files on Cocoon startup
+ append=true: Will append to the existing log files
+ -->
+ <append>false</append>
+ <!--
+ rotation: allows you to rotate log files one they meet certain
+ criteria. In example below, files are rotated once they
+ are one hour old or bigger than 100 Mb.
+
<rotation type="revolving" init="1" max="4">
<or>
<size>100m</size>
<time>01:00:00</time>
</or>
</rotation>
+ -->
</cocoon>
<cocoon id="sitemap">
@@ -28,13 +38,7 @@
<format type="cocoon">
%7.7{priority} %{time} [%{category}] (%{uri}) %{thread}/%{class:short}: %{message}\n%{throwable}
</format>
- <append>true</append>
- <rotation type="revolving" init="1" max="4">
- <or>
- <size>100m</size>
- <time>01:00:00</time>
- </or>
- </rotation>
+ <append>false</append>
</cocoon>
<cocoon id="access">
@@ -42,28 +46,19 @@
<format type="cocoon">
%7.7{priority} %{time} [%{category}] (%{uri}) %{thread}/%{class:short}: %{message}\n%{throwable}
</format>
- <append>true</append>
- <rotation type="revolving" init="1" max="4">
- <or>
- <size>100m</size>
- <time>01:00:00</time>
- </or>
- </rotation>
+ <append>false</append>
</cocoon>
+ <!--
+ This log file gets only messages with log level ERROR and below.
+ -->
<priority-filter id="error" log-level="ERROR">
<cocoon>
<filename>${context-root}/WEB-INF/logs/error.log</filename>
<format type="cocoon">
%7.7{priority} %{time} [%{category}] (%{uri}) %{thread}/%{class:short}: %{message}\n%{throwable}
</format>
- <append>true</append>
- <rotation type="revolving" init="1" max="4">
- <or>
- <size>100m</size>
- <time>01:00:00</time>
- </or>
- </rotation>
+ <append>false</append>
</cocoon>
</priority-filter>
</targets>
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org