| EventFilterFactoryForLogLevel Method (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.
Namespace:
Akka.TestKit
Assembly:
Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax public IEventFilterApplier ForLogLevel(
LogLevel logLevel,
string message = null,
string start = null,
string contains = null,
string source = null
)
member ForLogLevel :
logLevel : LogLevel *
?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
- logLevel
- Type: Akka.EventLogLevel
The log level used to match events being filtered. - 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:
IEventFilterApplierAn event filter that matches on the given
logLevel.
Exceptions See Also