cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Victoria Vitaver <victo...@tt.com.au>
Subject Restricting cache messages
Date Wed, 07 Jun 2006 06:37:08 GMT

Hi,

It seems the the logging for cache management in cocoon is badly 
configured. Currently I have everything restricted to 'ERROR', and while 
it gets rid of most DEBUG statements from my cocoon.log, the following 
DEBUG messages _still_ show up in my server.log file:

2006-06-07 13:51:17,229 DEBUG [net.sf.ehcache.store.MemoryStore] 
cocoon-ehcache-1Cache: MemoryStore hit for 
PK_G-file-file:/opt/jboss-4.0.3SP1/server/development/./tmp/deploy/tmp10799cocoon.war/welcome.xml_T-xslt-file:/opt/jboss-4.0.3SP1/server/development/./tmp/deploy/tmp10799cocoon.war/welcome.xslt;contextPath=/apps/ccn_S-xhtml-;doctype-public=-//W3C//DTD

XHTML 1.0 
Strict//EN;doctype-system=http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;encoding=UTF-8
2006-06-07 13:51:17,230 DEBUG [net.sf.ehcache.Cache] cocoon-ehcache-1: 
Is element with key 
PK_G-file-file:/opt/jboss-4.0.3SP1/server/development/./tmp/deploy/tmp10799cocoon.war/welcome.xml_T-xslt-file:/opt/jboss-4.0.3SP1/server/development/./tmp/deploy/tmp10799cocoon.war/welcome.xslt;contextPath=/apps/ccn_S-xhtml-;doctype-public=-//W3C//DTD

XHTML 1.0 
Strict//EN;doctype-system=http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;encoding=UTF-8

expired?: false


Now my inkling it has something to do with the following in my 
cocoon.xconf file:

  <store_ logger="core.store"_>
    <parameter name="maxobjects" value="${store.maxobjects}"/>
    <parameter name="use-cache-directory" value="true"/>
  </store>

BUT, how _exactly_ can I stop it logging to where it shouldnt ?!  (I 
have tried to change logger to reference 'sitemap.core.store', but no luck)
How can I turn these messages off?


Thank you,

Vica
PS.     Here is my logkit.xconf:

---------------
<logkit>
  <factories>
    <factory class="org.apache.cocoon.util.log.CocoonTargetFactory" 
type="cocoon"/>
    <factory 
class="org.apache.avalon.excalibur.logger.factory.ServletTargetFactory" 
type="servlet"/>
    <factory 
class="org.apache.avalon.excalibur.logger.factory.StreamTargetFactory" 
type="stream"/>
  </factories>

   <targets>
    <cocoon id="main">    
      <filename>${context-root}/../../../log/cocoon.log</filename>
      <format type="cocoon">%5.5{priority} %{time} [%{category}] 
(%{uri}%{query}) %{thread}/%{class:short}: 
%{message}\n%{rootThrowable}</format>
<append>false</append>
 </cocoon>

    <cocoon id="deprecation">
      <filename>${context-root}/../../../log/cocoon.log</filename>
      <format type="cocoon">%5.5{priority} %{time} [%{category}] 
(%{uri}%{query}) %{thread}/%{class:short}: %{message}\n</format>
      <append>false</append>
    </cocoon>

    <servlet id="servlet">
      <format type="extended">%5.5{priority} %5.5{time} [%8.8{category}] 
(%{context}): %{message}\n</format>
    </servlet>

    <stream id="console">
      <stream>System.out</stream>
      <format type="extended">%5.5{priority} %5.5{time} [%8.8{category}] 
(%{context}): %{message}\n</format>
    </stream>
    <!-- The logger for the imageop components -->
    <cocoon id="imageop">
        <filename>${context-root}/../../../log/cocoon.log</filename>
        <format type="cocoon">
            %7.7{priority} %{time}   [%{category}] 
%{thread}/%{class:short}: %{message}\n%{throwable}
        </format>
        <append>false</append>
    </cocoon>
</targets>
<categories>
    <category log-level="ERROR" name="">
      <log-target id-ref="main"/>
    </category>
     <category log-level="WARN" name="deprecation">
      <log-target id-ref="deprecation"/>
    </category>
    <category log-level="ERROR" name="imageop">
        <log-target id-ref="imageop"/>
    </category>
</categories>
</logkit>
             


--
Disclaimer: This email is confidential and may contain privileged information for the sole
use of the person or business to which it is addressed. If you are not the intended recipient,
please notify the sender by return e-mail or phone as you must not view, disseminate, distribute
or copy this email without our consent. We do not accept any liability in connection with
any computer virus, data corruption, incompleteness, or unauthorised amendment of this email.
It is the sole responsibility of the receiver to scan for viruses before opening.

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


Mime
View raw message