cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@apache.org>
Subject Re: svn commit: r159493 - cocoon/trunk/src/webapp/WEB-INF/logkit.xconf
Date Thu, 14 Apr 2005 10:01:03 GMT
vgritsenko@apache.org wrote:
>    <!--+
> -      | Factories are responsible to create the consumers of the log events, the targets.
> -      | Here we have configured just a few, the main cocoon target factory (that prints
to a file)
> -      | and the servlet target factory (that prints back to the servlet container log
stream) but
> -      | for more info on the available logkit factories, please consult
> -      |  http://excalibur.apache.org/apidocs/org/apache/avalon/excalibur/logger/factory/package-summary.html
> +      | Factories are responsible to create the consumers of the log events,
> +      | the targets. Here we have configured just a few, the main cocoon
> +      | target factory (that prints to a file) and the servlet target factory
> +      | (that prints back to the servlet container log stream) but  for more
> +      | info on the available logkit factories, please consult
> +      | http://excalibur.apache.org/apidocs/org/apache/avalon/excalibur/logger/factory/package-summary.html
>        +-->
>    <factories>
>      <factory type="cocoon" class="org.apache.cocoon.util.log.CocoonTargetFactory"/>
>      <factory type="servlet" class="org.apache.avalon.excalibur.logger.factory.ServletTargetFactory"/>
> +    <factory type="stream" class="org.apache.avalon.excalibur.logger.factory.StreamTargetFactory"/>
>    </factories>
>  
>    <!--+
> @@ -53,39 +70,43 @@
>            | the error stacktrace (which tend to be very verbose and for little value).
>            | If you need the stacktraces, uncomment the second format below.
>            +-->
> -      <format type="cocoon">%7.7{priority} %{time} [%{category}] (%{uri}) %{thread}/%{class:short}:
%{message}\n</format>
> -      <!--format type="cocoon">%7.7{priority} %{time} [%{category}] (%{uri}) %{thread}/%{class:short}:
%{message}\n%{throwable}</format-->
> +      <format type="cocoon">%5.5{priority} %{time} [%{category}] (%{uri}) %{thread}/%{class:short}:
%{message}\n</format>
> +      <!--format type="cocoon">%5.5{priority} %{time} [%{category}] (%{uri}) %{thread}/%{class:short}:
%{message}\n%{throwable}</format-->
>  
>        <!--+
>            | <append> if set to 'true' will make cocoon append the events
>            | to the existing file, if set to 'false' cocoon will override
>            | the existing ones at every new start.
>            +-->
> -      <append>true</append>
> +      <append>false</append>

wouldn't it be better to append data by default? or at least make it 
configurable during build just like log level?

-- 
Leszek Gawron                                                 MobileBox
lgawron@apache.org                              http://www.mobilebox.pl

Mime
View raw message