You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2003/08/12 18:26:47 UTC

cvs commit: cocoon-lenya/src/webapp/WEB-INF logkit-xconf.xsl

andreas     2003/08/12 09:26:47

  Modified:    src/targets init-build.xml
  Added:       src/webapp/WEB-INF logkit-xconf.xsl
  Log:
  patching logkit.xconf
  
  Revision  Changes    Path
  1.12      +10 -0     cocoon-lenya/src/targets/init-build.xml
  
  Index: init-build.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/targets/init-build.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- init-build.xml	30 Jul 2003 13:46:56 -0000	1.11
  +++ init-build.xml	12 Aug 2003 16:26:47 -0000	1.12
  @@ -114,6 +114,16 @@
         <outputproperty name="indent" value="yes"/>
       </xslt>
       
  +    <!-- patch logkit.xconf -->
  +    <echo>INFO: patching logkit.xconf with XSLT stylesheet</echo>
  +    <xslt
  +        in="${src.cocoon.dir}/WEB-INF/logkit.xconf"
  +        out="${build.webapp}/WEB-INF/logkit.xconf"
  +        style="${src.webapp.dir}/WEB-INF/logkit-xconf.xsl"
  +        >
  +      <outputproperty name="indent" value="yes"/>
  +    </xslt>
  +    
       <!-- patch web.xml -->
       <echo>INFO: patching web.xml with XSLT stylesheet</echo>
       <xslt
  
  
  
  1.1                  cocoon-lenya/src/webapp/WEB-INF/logkit-xconf.xsl
  
  Index: logkit-xconf.xsl
  ===================================================================
  <?xml version="1.0" encoding="UTF-8" ?>
  
  <!--
      Document   : cocoon-xconf.xsl
      Created on : 6. März 2003, 11:39
      Author     : andreas
      Description:
          Purpose of transformation follows.
  -->
  
  <xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <xsl:template match="targets">
    <xsl:copy>
      <xsl:copy-of select="@*"/>
      <xsl:apply-templates/>
      
      <cocoon id="lenya">
        <filename>${context-root}/WEB-INF/logs/lenya.log</filename>
        <format type="cocoon">
          %7.7{priority} %{time}   [%{category}] (%{uri}) %{thread}/%{class:short}: %{message}\n%{throwable}
        </format>
        <append>false</append>
      </cocoon>
      
    </xsl:copy>
  </xsl:template>
  
  
  <xsl:template match="categories">
    <xsl:copy>
      <xsl:copy-of select="@*"/>
      <xsl:apply-templates/>
      
      <category name="lenya" log-level="LENYA">
        <log-target id-ref="lenya"/>
        <log-target id-ref="error"/>
      </category>
      
    </xsl:copy>
  </xsl:template>
  
  
  <xsl:template match="category">
    <category name="@name" log-level="DEBUG">
      <xsl:apply-templates/>
    </category>
  </xsl:template>
  
  
  <xsl:template match="@*|node()">
    <xsl:copy>
      <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
  </xsl:template>
  
     
  </xsl:stylesheet> 
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org