| EventFilterFactoryDebug Method (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).
Namespace:
Akka.TestKit
Assembly:
Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public IEventFilterApplier Debug(
string message = null,
string start = null,
string contains = null,
string source = null
)
member Debug :
?message : string *
?start : string *
?contains : string *
?source : string
(* Defaults:
let _message = defaultArg message null
let _start = defaultArg start null
let _contains = defaultArg contains null
let _source = defaultArg source null
*)
-> IEventFilterApplier
Parameters
- message (Optional)
- Type: SystemString
Optional. If specified the event must match it exactly to be filtered. - start (Optional)
- Type: SystemString
Optional. If specified (and message is not specified), the event must start with the string to be filtered. - contains (Optional)
- Type: SystemString
Optional. If specified (and neither message nor start are specified), the event must contain the string to be filtered. - source (Optional)
- Type: SystemString
Optional. The event source.
Return Value
Type:
IEventFilterApplierThe new filter
See Also