https://issues.apache.org/bugzilla/show_bug.cgi?id=46049

           Summary: Filter support in PropertyConfigurator
           Product: Log4j
           Version: 1.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Configurator
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Created an attachment (id=22761)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22761)
Patch for adding Filter support to PropertyConfigurator

The attached patch adds Filter Support for PropertyConfigurator. The syntax is
exemplified in this .properties file snippet:

my.StringToMatch=SOMEPATTERN
my.LevelToMatch=INFO
log4j.appender.CONSOLE.filter.01=org.apache.log4j.varia.StringMatchFilter
log4j.appender.CONSOLE.filter.01.StringToMatch=${my.StringToMatch}
log4j.appender.CONSOLE.filter.02=org.apache.log4j.varia.LevelMatchFilter
log4j.appender.CONSOLE.filter.02.LevelToMatch=${my.LevelToMatch}
log4j.appender.CONSOLE.filter.03=org.apache.log4j.varia.DenyAllFilter

For more info please refer to the modified JavaDoc in the patch.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to