You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Ceki Gülcü <ce...@qos.ch> on 2002/02/18 19:18:50 UTC

Re: log4j 1.2 beta2 : problems specifying a custom Level in LevelMatchFilter through XML

Your config file tested file tested fine with logg4j 1.2 beta3 which I am 
about to release in a few hours. Regards, Ceki

At 09:57 18.02.2002 +0100, you wrote:
>We use the DomConfigurator and a XML File to configure log4j!
>We use multiple appenders and some of then are filtered by a
>custom Level. Here is an example:
>
>     <appender name="AJournalFile" 
> class="org.apache.log4j.DailyRollingFileAppender">
>         <param name="File" value="${logDirectory}/MyJournalLogFile" />
>         <param name="DatePattern" value="'.'yyyy-MM-dd'.log'" />
>         <param name="Append" value="true" />
>
>         <layout class="org.apache.log4j.PatternLayout">
>             <param name="ConversionPattern" value="%d{ISO8601} [%t] %-5p 
> %c %x - %m%n" />
>         </layout>
>
>         <filter class="org.apache.log4j.varia.LevelMatchFilter">
>             <param name="LevelToMatch" value="JOURNAL#com.abc.def.MyLevel" />
>             <param name="AcceptOnMatch" value="true" />
>         </filter>
>
>         <filter class="org.apache.log4j.varia.DenyAllFilter"/>
>     </appender>
>
>Unfortunately this does not work anymore in 1.2 beta2! In the previous 
>versions
>up to 1.2 alpha7 everything worked as expected! I was unable to find a 
>regarding
>example in the log4j 1.2 beta2 distribution!
>
>Any idea, any help ???
>
>Best regards,
>Christian Kedl
>
>
>--
>Diese E-Mail wurde mit http://www.mail-inspector.de verschickt
>Mail Inspector ist ein kostenloser Service von http://www.is-fun.net
>Der Absender dieser E-Mail hatte die IP: 193.194.7.84
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>