Hamish Cunningham wrote:

Perhaps the default should be changed in view of the upcoming 1.4 release?

I think no just for the release, but also as it is now, because
devs who really want to debug Lenya in a meaningful way need to adjust
it anyway (e.g. enable debug for specific classes).

For instance I am using the following log4j.xconf which might be helpful to some:

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/";>

   <!-- This is a sample configuration for log4j.
        It simply just logs everything into a single
        log file.
        Note, that you can use properties for value substitution.
   -->
   <appender class="org.apache.log4j.FileAppender" name="COCOON_DEFAULT">
       <param name="File" value="${context-root}/WEB-INF/logs/log4j.log"/>
       <param name="Append" value="false"/>
       <layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-4r %d [%t] %-5p %c.%M():%L %x - %m%n"/>
       </layout>
   </appender>

   <!--+
       | See http://logging.apache.org/log4j/docs/chainsaw.html
       +-->
   <appender class="org.apache.log4j.net.SocketAppender" name="Chainsaw">
       <param name="remoteHost" value="localhost"/>
       <param name="port" value="4445"/>
       <param name="locationInfo" value="true"/>
   </appender>

<category name="org.apache.cocoon.components.search.components.impl.IndexManagerImpl" additivity="false">
     <priority value="DEBUG"/>
     <appender-ref ref="COCOON_DEFAULT" />
   </category>

<category name="org.apache.lenya.cms.lucene.IndexDocument" additivity="false">
     <priority value="DEBUG"/>
     <appender-ref ref="COCOON_DEFAULT" />
   </category>

   <logger name="org.mortbay.http.ContextLoader">
       <level value="warn"/>
   </logger>




   <root>
     <priority value="warn"/>
     <appender-ref ref="COCOON_DEFAULT"/>

     <!--+
         | Uncomment to enable logging to Chainsaw.
         | See http://logging.apache.org/log4j/docs/chainsaw.html
         +-->
     <!--
     <appender-ref ref="Chainsaw" />
       -->

   </root>
</log4j:configuration>

HTH

Michi

--
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                        [EMAIL PROTECTED]
+41 44 272 91 61


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to