public final class TimeFilter extends Filter
Constructor and Description |
---|
TimeFilter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
decide(LoggingEvent event) |
boolean |
getAcceptOnMatch()
Gets whether an event within the timespan should be accepted or denied.
|
void |
setAcceptOnMatch(boolean acceptOnMatch)
Sets whether an event within the timespan should be accepted or denied.
|
void |
setEnd(java.lang.String s)
Set end (exclusive) of time span.
|
void |
setStart(java.lang.String s)
Set start (inclusive) of time span.
|
void |
setTimeZone(java.lang.String s)
Set timezone.
|
activateOptions, getNext, setNext
public void setStart(java.lang.String s)
s
- string representation of start time as HH:mm:ss.public void setEnd(java.lang.String s)
s
- string representation of end time as HH:mm:ss.public void setTimeZone(java.lang.String s)
s
- time zone.public void setAcceptOnMatch(boolean acceptOnMatch)
acceptOnMatch
- true if matching event should be accepted.public boolean getAcceptOnMatch()
public int decide(LoggingEvent event)
Copyright © 2006-2019 OPS4J - Open Participation Software for Java. All Rights Reserved.