cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Morandini <lmorand...@ieee.org>
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"/>
     </layout>
   </appender>

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

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 ?

Regards,

--------------------
    Luca Morandini
www.lucamorandini.it
--------------------


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


Mime
View raw message