cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Morandini <>
Subject [2.2]: Logging not working
Date Wed, 30 Apr 2008 13:38:06 GMT
I've declared a component's logger as such:
       <map:reader logger="geoid" ... />

Then I configured the log4j:
   <appender name="GEOID_APPENDER" class="org.apache.log4j.FileAppender">
     <param name="File" value="\${logs.dir}/geoid.log"/>
     <param name="Append" value="\${logs.append}"/>
     <layout class="org.apache.log4j.PatternLayout">
       <param name="ConversionPattern" value="%d{ISO8601} %t %-5p %c{2} 
- %m%n"/>

   <logger name="geoid" additivity="false">
     <level value="\${org.apache.cocoon.log4j.loglevel}"/>
     <appender-ref ref="GEOID_APPENDER"/>

But, even when org.apache.cocoon.log4j.loglevel is set to DEBUG, the 
getLogger.debug() statements' output doesn't appear in the geoid-log 
file, though said file is created.

Any clue ?


    Luca Morandini

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message