You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "caxey jones (JIRA)" <ji...@apache.org> on 2010/07/14 11:39:50 UTC

[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.


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

Posted by Douglas E Wegscheid <Do...@whirlpool.com>.
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)" <ji...@apache.org> 
07/14/2010 05:39 AM
Please respond to
"Log4NET Dev" <lo...@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.



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

Posted by "Douglas E Wegscheid (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LOG4NET-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12888326#action_12888326 ] 

Douglas E Wegscheid commented on LOG4NET-263:
---------------------------------------------

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)" <ji...@apache.org> 
07/14/2010 05:39 AM
Please respond to
"Log4NET Dev" <lo...@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.




> 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.