cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Poetz <reinh...@apache.org>
Subject Re: [C2.2]: Unable to log on a logger other than root
Date Sat, 16 Feb 2008 17:39:02 GMT
Luca Morandini wrote:
> I'm trying to divert the output of a reader of mine to a logger named 
> "geoid", to no avail so far.
> 
> The relevant fragments of log4j.xml are:
> ...
>   <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="\${logs.level}"/>
>     <appender-ref ref="GEOID_APPENDER"/>
>   </logger>
> ...
> 
> Actually, geoid.log is opened on the file system but the output of my 
> reader (done using  getLogger().debug("...") ) is diverted to the root 
> logger (cocoon.log) and geoid.log remains 0 bytes :(

Do you use the Cocoon Maven plugin (cocoon:rcl)?

-- 
Reinhard Pötz                            Managing Director, {Indoqa} GmbH
                           http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member, PMC Chair        reinhard@apache.org
_________________________________________________________________________

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


Mime
View raw message