EventFilterFactory Methods |
The EventFilterFactory type exposes the following members.
Name | Description | |
---|---|---|
CreateApplier |
TBD
| |
CreateMessageMatcher |
TBD
| |
Custom(PredicateLogEvent) |
Create a custom event filter. The filter will affect those events for
which the predicate function returns true.
| |
CustomTLogEvent(PredicateTLogEvent) |
Create a custom event filter. The filter will affect those events for
which the predicate function returns true.
| |
DeadLetter |
Creates a filter that catches dead letters
| |
DeadLetter(Type, String) |
Creates a filter that catches dead letters of the specified type and, optionally from the specified source.
| |
DeadLetter(Type, FuncObject, Boolean, String) |
Creates a filter that catches dead letters of the specified type and matches the predicate, and optionally from the specified source.
| |
DeadLetterTMessage(String) |
Creates a filter that catches dead letters of the specified type and, optionally from the specified source.
| |
DeadLetterTMessage(FuncTMessage, Boolean, String) |
Creates a filter that catches dead letters of the specified type and matches the predicate, and optionally from the specified source.
| |
Debug(Regex, String) |
Create a filter for Debug events. Events must match the specified pattern to be filtered.
Examples
Debug(pattern: new Regex("weird.*message"), source: obj) // filter on pattern and source
Remarks Please note that filtering on the source being
null does NOT work (passing null disables the source filter).
| |
Debug(String, String, String, String) |
Create a filter for Debug 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. Examples
Debug() // filter all Debug events
Debug("message") // filter on exactly matching message
Debug(source: obj) // filter on event source
Debug(start: "Expected") // filter on start of message
Debug(contains: "Expected") // filter on part of message
Remarks Please note that filtering on the source being
null does NOT work (passing null disables the source filter).
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Error(Regex, String) |
Create a filter for Error events. Events must match the specified pattern to be filtered.
Examples
Error(pattern: new Regex("weird.*message"), source: obj) // filter on pattern and source
Remarks 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. Examples
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
Remarks Please note that filtering on the source being
null does NOT work (passing null disables the source filter).
| |
Exception(Type, Regex, String, Boolean) |
Create a filter for Error events. Events must match the specified pattern to be filtered.
Examples
Exception<MyException>(pattern: new Regex("weird.*message"), source: obj) // filter on pattern and source
Remarks Please note that filtering on the source being
null does NOT work (passing null disables the source filter).
| |
Exception(Type, String, String, String, String, Boolean) |
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. Examples
Exception(typeof(MyException)) // filter only on exception type
Exception(typeof(MyException), "message") // filter on exactly matching message
Exception(typeof(MyException), source: obj) // filter on event source
Exception(typeof(MyException), start: "Expected") // filter on start of message
Remarks Please note that filtering on the source being
null does NOT work (passing null disables the source filter).
| |
ExceptionTException(Regex, String) |
Create a filter for Error events. Events must match the specified pattern to be filtered.
Examples
Exception<MyException>(pattern: new Regex("weird.*message"), source: obj) // filter on pattern and source
Remarks Please note that filtering on the source being
null does NOT work (passing null disables the source filter).
| |
ExceptionTException(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. Examples
Exception<MyException>() // filter only on exception type
Exception<MyException>("message") // filter on exactly matching message
Exception<MyException>(source: obj) // filter on event source
Exception<MyException>(start: "Expected") // filter on start of message
Remarks Please note that filtering on the source being
null does NOT work (passing null disables the source filter).
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
ForLogLevel(LogLevel, Regex, String) |
Creates a filter given the specified logLevel.
This is the same as calling Debug(Regex, String), Info(Regex, String)Warning(Regex, String) or Error(Regex, String)
directly.
| |
ForLogLevel(LogLevel, String, String, String, String) |
Creates an event filter given the specified logLevel.
This is the same as calling Debug(String, String, String, String), Info(String, String, String, String)Warning(String, String, String, String) or Error(String, String, String, String)
directly.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Info(Regex, String) |
Create a filter for Info events. Events must match the specified pattern to be filtered.
Examples
Info(pattern: new Regex("weird.*message"), source: obj) // filter on pattern and source
Remarks Please note that filtering on the source being
null does NOT work (passing null disables the source filter).
| |
Info(String, String, String, String) |
Create a filter for Info 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. Examples
Info() // filter all Info events
Info("message") // filter on exactly matching message
Info(source: obj) // filter on event source
Info(start: "Expected") // filter on start of message
Info(contains: "Expected") // filter on part of message
Remarks Please note that filtering on the source being
null does NOT work (passing null disables the source filter).
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Warning(Regex, String) |
Create a filter for Warning events. Events must match the specified pattern to be filtered.
Examples
Warning(pattern: new Regex("weird.*message"), source: obj) // filter on pattern and source
Remarks Please note that filtering on the source being
null does NOT work (passing null disables the source filter).
| |
Warning(String, String, String, String) |
Create a filter for Warning 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. Examples
Warning() // filter all Warning events
Warning("message") // filter on exactly matching message
Warning(source: obj) // filter on event source
Warning(start: "Expected") // filter on start of message
Warning(contains: "Expected") // filter on part of message
Remarks Please note that filtering on the source being
null does NOT work (passing null disables the source filter).
|
Name | Description | |
---|---|---|
AsInstanceOfT |
TBD
(Defined by Extensions.) | |
Match | Overloaded.
Matches the specified target.
(Defined by PatternMatch.) | |
MatchT | Overloaded.
Matches the specified target and return a result of target processing.
(Defined by PatternMatch.) |