public final class InfoFilter 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 |
---|
InfoFilter(scala.Option<java.lang.String> source,
scala.util.Either<java.lang.String,scala.util.matching.Regex> message,
boolean complete,
int occurrences) |
InfoFilter(java.lang.String source,
java.lang.String message,
boolean pattern,
boolean complete,
int occurrences)
Java API: create an InfoFilter
|
Modifier and Type | Method and Description |
---|---|
static boolean |
apply(Logging.LogEvent event) |
static void |
assertDone(scala.concurrent.duration.Duration max) |
static boolean |
awaitDone(scala.concurrent.duration.Duration max) |
abstract static boolean |
canEqual(java.lang.Object that) |
boolean |
complete() |
protected static boolean |
doMatch(java.lang.String src,
java.lang.Object msg) |
abstract static boolean |
equals(java.lang.Object that) |
static <T> T |
intercept(scala.Function0<T> code,
ActorSystem system) |
boolean |
matches(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() |
abstract static int |
productArity() |
abstract static java.lang.Object |
productElement(int n) |
static scala.collection.Iterator<java.lang.Object> |
productIterator() |
static java.lang.String |
productPrefix() |
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 InfoFilter(scala.Option<java.lang.String> source, scala.util.Either<java.lang.String,scala.util.matching.Regex> message, boolean complete, int occurrences)
public InfoFilter(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 static final boolean apply(Logging.LogEvent event)
public static boolean awaitDone(scala.concurrent.duration.Duration max)
public static void assertDone(scala.concurrent.duration.Duration max)
public static <T> T intercept(scala.Function0<T> code, ActorSystem system)
protected static boolean doMatch(java.lang.String src, java.lang.Object msg)
public abstract static boolean canEqual(java.lang.Object that)
public abstract static boolean equals(java.lang.Object that)
public abstract static java.lang.Object productElement(int n)
public abstract static int productArity()
public static scala.collection.Iterator<java.lang.Object> productIterator()
public static java.lang.String productPrefix()
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(Logging.LogEvent event)
EventFilter
true
) or not
(false
).matches
in class EventFilter
event
- (undocumented)