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