You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Dominik Psenner (JIRA)" <ji...@apache.org> on 2013/08/07 15:32:51 UTC

[jira] [Updated] (LOG4NET-205) Allow filtering by Identity / UserName / ThreadName and Domain

     [ https://issues.apache.org/jira/browse/LOG4NET-205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dominik Psenner updated LOG4NET-205:
------------------------------------

    Fix Version/s:     (was: 1.2 Maintenance Release)
                   1.2.11
    
> Allow filtering by Identity / UserName / ThreadName and Domain
> --------------------------------------------------------------
>
>                 Key: LOG4NET-205
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-205
>             Project: Log4net
>          Issue Type: New Feature
>          Components: Core
>    Affects Versions: 1.2.10
>            Reporter: Bruno Baia
>            Assignee: Dominik Psenner
>             Fix For: 1.2.11
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira