java.lang.Object | ||
↳ | org.apache.log4j.spi.Filter | |
↳ | org.apache.log4j.varia.StringMatchFilter |
This is a very simple filter based on string matching.
The filter admits two options StringToMatch and
AcceptOnMatch. If there is a match between the value of the
StringToMatch option and the message of the LoggingEvent
,
then the decide(LoggingEvent)
method returns ACCEPT
if
the AcceptOnMatch option value is true, if it is false then
DENY
is returned. If there is no match, NEUTRAL
is returned.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ACCEPT_ON_MATCH_OPTION | This constant is deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term. | |||||||||
String | STRING_TO_MATCH_OPTION | This constant is deprecated. Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.log4j.spi.Filter
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.log4j.spi.Filter
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns
NEUTRAL is there is no string match. | |||||||||||
This method is deprecated.
We now use JavaBeans introspection to configure
components. Options strings are no longer needed.
| |||||||||||
This method is deprecated.
Use the setter method for the option directly instead
of the generic
setOption method.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.log4j.spi.Filter
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.apache.log4j.spi.OptionHandler
|
This constant is deprecated.
Options are now handled using the JavaBeans paradigm.
This constant is not longer needed and will be removed in the
near term.
This constant is deprecated.
Options are now handled using the JavaBeans paradigm.
This constant is not longer needed and will be removed in the
near term.
Returns NEUTRAL
is there is no string match.
event | The LoggingEvent to decide upon. |
---|
This method is deprecated.
We now use JavaBeans introspection to configure
components. Options strings are no longer needed.
This method is deprecated.
Use the setter method for the option directly instead
of the generic setOption
method.