logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28647] - Add "Flush on Level" capability to FileAppender
Date Fri, 07 May 2004 03:45:59 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28647>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28647

Add "Flush on Level" capability to FileAppender





------- Additional Comments From sdeboy@iname.com  2004-05-07 03:45 -------
See ExpressionFilter here:
http://cvs.apache.org/viewcvs.cgi/logging-log4j/src/java/org/apache/log4j/varia/ExpressionFilter.java?rev=1.3&view=auto

And ExpressionRule here:
http://cvs.apache.org/viewcvs.cgi/logging-log4j/src/java/org/apache/log4j/rule/ExpressionRule.java?rev=1.6&view=auto

The ExpressionFilter is an example of how an ExpressionRule can be used to allow
or prevent events from being processed by an appender (and ExpressionRule could
be used similarly in a flush trigger).

Here is an example of how an ExpressionFilter is used to filter events:

   <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
      <layout class="org.apache.log4j.SimpleLayout"/>
        <filter class="org.apache.log4j.varia.ExpressionFilter">
          <param name="Expression" value="level > INFO" />
          <param name="AcceptOnMatch" value="true"/>
          <param name="ConvertInFixToPostFix" value="true"/>
        </filter>
        <filter class="org.apache.log4j.varia.DenyAllFilter"/>
   </appender>

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message