[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4net-dev
Subject:    Re: [jira] Created: (LOG4NET-263) add event before write to log to cancel
From:       Douglas E Wegscheid <Douglas_E_Wegscheid () whirlpool ! com>
Date:       2010-07-14 13:18:03
Message-ID: OF783A7A3D.DC8E2851-ON85257760.0048E166-85257760.00491BF0 () email ! whirlpool ! com
[Download RAW message or body]

This is a multipart message in MIME format.
--=_alternative 00491BB885257760_=
Content-Type: text/plain; charset="US-ASCII"

can't you do this yourself by extending ForwardingAppender, overriding 
FilterEvent(), and connecting your new FilteringForwardingAppender to your 
existing appenders?

Douglas E Wegscheid
Lead Technical Analyst, Whirlpool Corporation
(269)-923-5278

"A wrong note played hesitatingly is a wrong note. A wrong note played 
with conviction is interpretation."





"caxey jones (JIRA)" <jira@apache.org> 
07/14/2010 05:39 AM
Please respond to
"Log4NET Dev" <log4net-dev@logging.apache.org>


To
log4net-dev@logging.apache.org
cc

Subject
[jira] Created: (LOG4NET-263) add event before write to log to cancel or 
continue writing






add event before write to log to cancel or continue writing
-----------------------------------------------------------

                 Key: LOG4NET-263
                 URL: https://issues.apache.org/jira/browse/LOG4NET-263
             Project: Log4net
          Issue Type: New Feature
          Components: Core
    Affects Versions: v.Next
         Environment: .net
            Reporter: caxey jones


I have thread application and when error will write to log file. And need 
checking if same message, I dont want to write again in certain interval 
maybe 10 seconds.

I think the possibility is to add OnWriting feature on log4net so 
developer have control to cancel or continue writing
add event before write to log to cancel or continue writing. so in event 
argument we can set like this
e.Cancel = true; to cancel writing to log.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



--=_alternative 00491BB885257760_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">can't you do this yourself by extending
ForwardingAppender, overriding FilterEvent(), and connecting your new \
FilteringForwardingAppender to your existing appenders?</font>
<br>
<br><font size=2 face="sans-serif">Douglas E Wegscheid<br>
Lead Technical Analyst, Whirlpool Corporation<br>
(269)-923-5278<br>
<br>
&quot;A wrong note played hesitatingly is a wrong note. A wrong note played
with conviction is interpretation.&quot;<br>
<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>&quot;caxey jones (JIRA)&quot;
&lt;jira@apache.org&gt;</b> </font>
<p><font size=1 face="sans-serif">07/14/2010 05:39 AM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
&quot;Log4NET Dev&quot; &lt;log4net-dev@logging.apache.org&gt;</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">log4net-dev@logging.apache.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">[jira] Created: (LOG4NET-263) add event
before write to log to cancel or continue writing</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>add event before write to log to cancel or continue
writing<br>
-----------------------------------------------------------<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Key: LOG4NET-263<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; URL: \
https://issues.apache.org/jira/browse/LOG4NET-263<br>  &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; Project: Log4net<br>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Issue Type: New \
Feature<br>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Components: Core<br>
 &nbsp; &nbsp;Affects Versions: v.Next<br>
 &nbsp; &nbsp; &nbsp; &nbsp; Environment: .net<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Reporter: caxey jones<br>
<br>
<br>
I have thread application and when error will write to log file. And need
checking if same message, I dont want to write again in certain interval
maybe 10 seconds.<br>
<br>
I think the possibility is to add OnWriting feature on log4net so developer
have control to cancel or continue writing<br>
add event before write to log to cancel or continue writing. so in event
argument we can set like this<br>
e.Cancel = true; to cancel writing to log.<br>
<br>
-- <br>
This message is automatically generated by JIRA.<br>
-<br>
You can reply to this email to add a comment to the issue online.<br>
<br>
</tt></font>
<br>
--=_alternative 00491BB885257760_=--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic