[ 
https://issues.apache.org/jira/browse/LOG4NET-155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Sevcik updated LOG4NET-155:
----------------------------------

    Attachment: log4net.Core.TimeEvaluator.cs

I forgot to add the zero-disable condition in previous file.

      // disable the evaluator if threshold is zero
      if (m_threshold == 0) return false;


> Add TimeEvaluator
> -----------------
>
>                 Key: LOG4NET-155
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-155
>             Project: Log4net
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Robert Sevcik
>            Priority: Minor
>             Fix For: v.Next
>
>         Attachments: log4net.Core.TimeEvaluator.cs
>
>
> Hello,
> I'd like to submit this class. I find it handy together with RemotingAppender 
> (or buffering appenders generally) where we don't want to send synchronously, 
> but still want to have some timely feedback from the sites even if there is 
> little logging.
> A sample configuration would be:
>     <appender name="RemotingAppender" 
> type="log4net.Appender.RemotingAppender">
>       <param name="Sink" value="tcp://localhost:11111/LoggingSink" />
>       <param name="Lossy" value="false" />
>       <param name="BufferSize" value="500" />
>       <param name="Fix" value="Partial" />
>       <evaluator type="log4net.Core.TimeEvaluator">
>         <threshold value="60"/>
>       </evaluator>
>     </appender>
> I've taken the existing LevelEvaluator from Nicko Cadell as a template to 
> build this class.
> I've tried it and it worked, but haven't done any further testing.
> Best regards and thanks for the great works!
> Robert.

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

Reply via email to