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: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]