Log4net
  1. Log4net
  2. LOG4NET-96

Expose the Message, Exception, and ErrorCode properties of OnlyOnceErrorHandler.

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.10
    • Fix Version/s: 1.2.11
    • Component/s: Appenders
    • Labels:
      None

      Description

      When an appender makes use of an OnlyOnceErrorHandler, allow the values that were written to the error handler to be inspected.

      1. OnlyOnceErrorHandler.cs.patch
        3 kB
        Ron Grabowski
      2. OnlyOnceErrorHandler2.patch
        4 kB
        Ron Grabowski

        Activity

        Hide
        Ron Grabowski added a comment -

        Fixed in r607517.

        Show
        Ron Grabowski added a comment - Fixed in r607517.
        Hide
        Ron Grabowski added a comment -

        Exposed parameters to Error method as public properties:

        ErrorMessage
        Exception
        ErrorCode

        Added property that exposes the date the error occured too:

        EnabledDate

        Moved the call to LogLog.Error to the Error method.

        Show
        Ron Grabowski added a comment - Exposed parameters to Error method as public properties: ErrorMessage Exception ErrorCode Added property that exposes the date the error occured too: EnabledDate Moved the call to LogLog.Error to the Error method.
        Hide
        Ron Grabowski added a comment -

        Patch that exposes the error's message, exception, and errorcode as public properties. Changed method that accepts ErrorCode to output ErrorCode instead of swallowing it.

        Show
        Ron Grabowski added a comment - Patch that exposes the error's message, exception, and errorcode as public properties. Changed method that accepts ErrorCode to output ErrorCode instead of swallowing it.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development