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 "Robert Sevcik (JIRA)" <ji...@apache.org> on 2008/05/19 15:56:55 UTC

[jira] Created: (LOG4NET-155) Add TimeEvaluator

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.


[jira] Updated: (LOG4NET-155) Add TimeEvaluator

Posted by "Robert Sevcik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LOG4NET-155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Attachment:     (was: log4net.Core.TimeEvaluator.cs)

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


[jira] Updated: (LOG4NET-155) Add TimeEvaluator

Posted by "Ron Grabowski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LOG4NET-155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ron Grabowski updated LOG4NET-155:
----------------------------------

    Fix Version/s:     (was: v.Next)
                   1.2.11
         Assignee: Ron Grabowski

> 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
>            Assignee: Ron Grabowski
>            Priority: Minor
>             Fix For: 1.2.11
>
>         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.


[jira] Resolved: (LOG4NET-155) Add TimeEvaluator

Posted by "Ron Grabowski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LOG4NET-155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ron Grabowski resolved LOG4NET-155.
-----------------------------------

    Resolution: Fixed

Fixed in r688531.

> 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
>            Assignee: Ron Grabowski
>            Priority: Minor
>             Fix For: 1.2.11
>
>         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.


[jira] Updated: (LOG4NET-155) Add TimeEvaluator

Posted by "Robert Sevcik (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Updated: (LOG4NET-155) Add TimeEvaluator

Posted by "Robert Sevcik (JIRA)" <ji...@apache.org>.
     [ 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

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