Of course that is possible. Just put filters on your logstatements... Like this:
<appender name="FILE" class="org.apache.log4j.FileAppender"> <param name="File" value="debug_and_info.log"/> <param name="DatePattern" value="_yyyyMMdd_HHmm"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%p - %m%n" /> </layout> <filter class="org.apache.log4j.varia.LevelRangeFilter"> <param name="LevelMin" value="DEBUG"/> <param name="LevelMax" value="INFO"/> </filter> </appender> <appender name="STDOUT" class="be.belgacom.mobile.log4j.ConsoleAppender"> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%p - %m%n" /> </layout> <filter class="org.apache.log4j.varia.LevelMatchFilter"> <param name="LevelToMatch" value="ERROR"/> </filter> </appender> <root> <priority value="debug"/> <appender-ref ref="FILE"/> <appender-ref ref="STDOUT"/> </root> -----Oorspronkelijk bericht----- Van: j d [mailto:[EMAIL PROTECTED]] Hello, Is there a way to configure Log4J so that one appender will output commands in one logging level, and another in a different level? For example, console appender will be configured for Error level , and file appender for debug level? Thanks, Yuval E. __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> **** DISCLAIMER **** "This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by other persons than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer". Thank you for your cooperation. For further information about Proximus mobile phone services please see our website at http://www.proximus.be or refer to any Proximus agent. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>