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 [EMAIL PROTECTED]
_________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]