Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.11
    • Component/s: Core
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        Robert Sevcik added a comment -

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

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

        Show
        Robert Sevcik added a comment - I forgot to add the zero-disable condition in previous file. // disable the evaluator if threshold is zero if (m_threshold == 0) return false;
        Hide
        Ron Grabowski added a comment -

        Fixed in r688531.

        Show
        Ron Grabowski added a comment - Fixed in r688531.

          People

          • Assignee:
            Ron Grabowski
            Reporter:
            Robert Sevcik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development