Log4net
  1. Log4net
  2. LOG4NET-38

EventLogAppender: Add support for setting the Category on Event Log messages.

    Details

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

      Description

      The EventLog supports Categories for each message. A category is a short integer.

      This could either be implemented as a fixed category value defined on the appender at config time, or as a value read from the LoggingEvent properties. The second option is more flexible as it allows the category to be specified for each message, a default category could still be specified in the appender configuration to allow for scenario 1 as well.

        Issue Links

          Activity

          Stefan Bodewig made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Stefan Bodewig added a comment -

          fixed with svn revision 1169705

          Show
          Stefan Bodewig added a comment - fixed with svn revision 1169705
          Isaac Devine made changes -
          Attachment add_category_for_EventLogAppender.patch [ 12490624 ]
          Hide
          Isaac Devine added a comment - - edited

          Patch which adds support to the EventLogAppender to include the Category, just like EventID is currently able to be set.

          Defaults to having a Category of 0 as that is what windows defaults to anyway.

          Show
          Isaac Devine added a comment - - edited Patch which adds support to the EventLogAppender to include the Category, just like EventID is currently able to be set. Defaults to having a Category of 0 as that is what windows defaults to anyway.
          Hide
          Ron Grabowski added a comment -

          EventLogAppender

          Show
          Ron Grabowski added a comment - EventLogAppender
          Ron Grabowski made changes -
          Link This issue incorporates LOG4NET-214 [ LOG4NET-214 ]
          Hide
          Bruno Baia added a comment -

          Same for Source and EventID properties (scenario 1)

          Show
          Bruno Baia added a comment - Same for Source and EventID properties (scenario 1)
          Ron Grabowski made changes -
          Fix Version/s 1.2.11 [ 12310980 ]
          Ron Grabowski made changes -
          Assignee Ron Grabowski [ ron ]
          Hide
          Ron Grabowski added a comment -

          EventLogAppender

          Show
          Ron Grabowski added a comment - EventLogAppender
          Ron Grabowski made changes -
          Field Original Value New Value
          Link This issue is related to LOG4NET-129 [ LOG4NET-129 ]
          Nicko Cadell created issue -

            People

            • Assignee:
              Ron Grabowski
              Reporter:
              Nicko Cadell
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development