Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-155

Add TimeEvaluator

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.2.11
    • Core
    • 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.

      Attachments

        Activity

          People

            ron liu ron
            robajz Jo Cutajar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: