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 2004/02/03 20:59:07 UTC

cvs commit: cocoon-2.1/src/webapp/WEB-INF web.xml

vgritsenko    2004/02/03 11:59:07

  Modified:    src/webapp/WEB-INF web.xml
  Log:
  Add sample system property showing Commons Logging configuration
  
  Revision  Changes    Path
  1.11      +12 -0     cocoon-2.1/src/webapp/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/webapp/WEB-INF/web.xml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- web.xml	3 Jan 2004 15:24:03 -0000	1.10
  +++ web.xml	3 Feb 2004 19:59:07 -0000	1.11
  @@ -54,6 +54,18 @@
       </init-param>
   
       <!--
  +      This parameter allows to set system properties
  +    -->
  +    <!--
  +    <init-param>
  +      <param-name>force-property</param-name>
  +      <param-value>
  +        org.apache.commons.logging.Log=org.apache.commons.logging.impl.LogKitLogger
  +      </param-value>
  +    </init-param>
  +    -->
  +
  +    <!--
         This parameter points to the main configuration file for Cocoon.
         Note that the path is specified in absolute notation but it will be
         resolved relative to the servlets webapp context path
  
  
  

Commons Logging, Re: cvs commit: cocoon-2.1/src/webapp/WEB-INF web.xml

Posted by Vadim Gritsenko <va...@reverycodes.com>.
vgritsenko@apache.org wrote:

>       <!--
>  +      This parameter allows to set system properties
>  +    -->
>  +    <!--
>  +    <init-param>
>  +      <param-name>force-property</param-name>
>  +      <param-value>
>  +        org.apache.commons.logging.Log=org.apache.commons.logging.impl.LogKitLogger
>  +      </param-value>
>  +    </init-param>
>  +    -->
>

So if you are using anything relying on Commons Logging, you can send 
its logs to LogKit by uncommenting this parameter.

I left this commented out because logkit is not available in the servlet 
container's classpath (by default), thus anything which uses Commons 
Logging and is not a part of Cocoon webapp will fail to initialize its 
logger.

Vadim