public final class TimeFilter
extends org.apache.log4j.spi.Filter
Constructor and Description |
---|
TimeFilter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
decide(org.apache.log4j.spi.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(String s)
Set end (exclusive) of time span.
|
void |
setStart(String s)
Set start (inclusive) of time span.
|
void |
setTimeZone(String s)
Set timezone.
|
public void setStart(String s)
s
- string representation of start time as HH:mm:ss.public void setEnd(String s)
s
- string representation of end time as HH:mm:ss.public void setTimeZone(String s)
s
- time zone.public void setAcceptOnMatch(boolean acceptOnMatch)
acceptOnMatch
- true if matching event should be accepted.public boolean getAcceptOnMatch()
public int decide(org.apache.log4j.spi.LoggingEvent event)
decide
in class org.apache.log4j.spi.Filter
Copyright © 2013 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.