cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ovi...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/schecoon/webapp/WEB-INF logkit.xconf
Date Wed, 13 Mar 2002 19:09:41 GMT
ovidiu      02/03/13 11:09:41

  Modified:    src/scratchpad/schecoon/webapp/WEB-INF logkit.xconf
  Log:
  Updated to the latest logkit.
  
  Revision  Changes    Path
  1.2       +51 -42    xml-cocoon2/src/scratchpad/schecoon/webapp/WEB-INF/logkit.xconf
  
  Index: logkit.xconf
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/webapp/WEB-INF/logkit.xconf,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- logkit.xconf	3 Jan 2002 12:31:35 -0000	1.1
  +++ logkit.xconf	13 Mar 2002 19:09:41 -0000	1.2
  @@ -8,71 +8,80 @@
     </factories>
   
     <targets>
  -    <cocoon id="cocoon">
  -      <filename>${context-root}/WEB-INF/logs/cocoon.log</filename>
  +    <cocoon id="core">
  +      <filename>${context-root}/WEB-INF/logs/core.log</filename>
         <format type="cocoon">
  -        %7.7{priority} %{time}   [%8.8{category}] (%{uri}) %{thread}/%{class:short}: %{message}\n%{throwable}
  +        %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="root">
  -      <filename>${context-root}/WEB-INF/logs/root.log</filename>
  +    <cocoon id="sitemap">
  +      <filename>${context-root}/WEB-INF/logs/sitemap.log</filename>
        
         <format type="cocoon">
  -        %7.7{priority} %{time}   [%8.8{category}] (%{uri}) %{thread}/%{class:short}: %{message}\n%{throwable}
  +        %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="components">
  -      <filename>${context-root}/WEB-INF/logs/components.log</filename>
  +    <cocoon id="access">
  +      <filename>${context-root}/WEB-INF/logs/access.log</filename>
         <format type="cocoon">
  -        %7.7{priority} %{time}   [%8.8{category}] (%{uri}) %{thread}/%{class:short}: %{message}\n%{throwable}
  +        %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 id="filter" log-level="ERROR">
  -      <servlet>
  -        <format type="extended">%7.7{priority} %5.5{time}: %{message}\n%{throwable}</format>
  -      </servlet>
  +   
  +    <!--
  +      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>false</append>
  +      </cocoon>
       </priority-filter>
     </targets>
   
     <categories>
  -    <category name="cocoon" log-level="ERROR">
  -      <log-target id-ref="cocoon"/>
  +    <!--
  +      log-level: One of DEBUG, INFO, WARN, ERROR, FATAL-ERROR.
  +    -->
  +    <category name="core" log-level="DEBUG">
  +      <category name="startup" log-level="DEBUG"/>
  +      <category name="roles" log-level="DEBUG"/>
  +      <category name="manager" log-level="DEBUG"/>
  +      <category name="store" log-level="DEBUG"/>
  +      <log-target id-ref="core"/>
  +      <log-target id-ref="error"/>
       </category>
  -    <category name="root" log-level="ERROR">
  -      <log-target id-ref="root"/>
  -      <category name="store" log-level="ERROR">
  -         <log-target id-ref="components"/>
  -         <log-target id-ref="filter"/>
  -      </category>
  -
  -      <category name="xslt" log-level="ERROR">
  -         <log-target id-ref="components"/>
  -         <log-target id-ref="filter"/>
  -      </category>
  +    <category name="sitemap" log-level="DEBUG">
  +      <log-target id-ref="sitemap"/>
  +      <log-target id-ref="error"/>
       </category>
  +    <category name="access" log-level="DEBUG">
  +      <log-target id-ref="access"/>
  +      <log-target id-ref="error"/>
  +    </category> 
     </categories>
   </logkit>
  
  
  

----------------------------------------------------------------------
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


Mime
View raw message