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

Allow filtering by Identity / UserName / ThreadName and Domain

    XMLWordPrintableJSON

    Details

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

      Description

      Background :
      See thread named PropertyFilter ( http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200903.mbox/browser )

      By default, there's no way to filter by those LoggingEvent properties.
      I want to avoid extra code to do that (by adding a property programmatically or implementing a custom IFilter)

      I see 2 solutions :

      • LoggingEvent.LookupProperty should be able to resolve internal keys like "log4net:Identity", "log4net:UserName", etc... (Note that It already works for "log4net:HostName" added by GlobalContext's static constructor). Then we can use the PropertyFilter.
      • Add a IFilter implementation for each property like it's done for the LoggerName and Level properties.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nachbarslumpi Dominik Psenner
                Reporter:
                bbaia Bruno Baia
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: