| EventFilterFactoryError Method |
| Name | Description | |
|---|---|---|
| Error(Regex, String) |
Create a filter for Error events. Events must match the specified pattern to be filtered.
Error(pattern: new Regex("weird.*message"), source: obj) // filter on pattern and source
Please note that filtering on the source being
null does NOT work (passing null disables the source filter).
| |
| Error(String, String, String, String) |
Create a filter for Error events.
message takes priority over start. If message!=null the event must match it to be filtered. If start!=null and message has not been specified, the event must start with the given string to be filtered. If contains!=null and both message and start have not been specified, the event must contain the given string to be filtered.
Error() // filter all Error events
Error("message") // filter on exactly matching message
Error(source: obj) // filter on event source
Error(start: "Expected") // filter on start of message
Error(contains: "Expected") // filter on part of message
Please note that filtering on the source being
null does NOT work (passing null disables the source filter).
|