public final class WarningFilter extends EventFilter implements scala.Product, scala.Serializable
source
, if given, applies a filter on the event’s originmessage
applies a filter on the event’s message (either with String.startsWith or Regex.findFirstIn().isDefined)Left("")
.Constructor and Description |
---|
WarningFilter(scala.Option<java.lang.String> source,
scala.util.Either<java.lang.String,scala.util.matching.Regex> message,
boolean complete,
int occurrences) |
WarningFilter(java.lang.String source,
java.lang.String message,
boolean pattern,
boolean complete,
int occurrences)
Java API: create a WarningFilter
|
Modifier and Type | Method and Description |
---|---|
boolean |
complete() |
boolean |
matches(akka.event.Logging.LogEvent event)
This method decides whether to filter the event (
true ) or not
(false ). |
scala.util.Either<java.lang.String,scala.util.matching.Regex> |
message() |
scala.Option<java.lang.String> |
source() |
apply, assertDone, awaitDone, custom, debug, doMatch, error, info, intercept, warning
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public WarningFilter(scala.Option<java.lang.String> source, scala.util.Either<java.lang.String,scala.util.matching.Regex> message, boolean complete, int occurrences)
public WarningFilter(java.lang.String source, java.lang.String message, boolean pattern, boolean complete, int occurrences)
source
- apply this filter only to events from the given source; do not filter on source if this is given as null
message
- apply this filter only to events whose message matches; do not filter on message if this is given as null
pattern
- if false
, the message string must start with the given
string, otherwise the message
argument is treated as
regular expression which is matched against the message (may match only
a substring to filter)complete
- whether the event’s message must match the given message string or pattern completelyoccurrences
- (undocumented)public scala.Option<java.lang.String> source()
source
in class EventFilter
public scala.util.Either<java.lang.String,scala.util.matching.Regex> message()
message
in class EventFilter
public boolean complete()
complete
in class EventFilter
public boolean matches(akka.event.Logging.LogEvent event)
EventFilter
true
) or not
(false
).matches
in class EventFilter
event
- (undocumented)