|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.spi.Filter
org.apache.log4j.filter.TimeFilter
public final class TimeFilter
Filters events that fall within a specified time period in each day.
Field Summary |
---|
Fields inherited from class org.apache.log4j.spi.Filter |
---|
ACCEPT, DENY, NEUTRAL, next |
Constructor Summary | |
---|---|
TimeFilter()
Constructor. |
Method Summary | |
---|---|
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(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. |
Methods inherited from class org.apache.log4j.spi.Filter |
---|
activateOptions, getNext, setNext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeFilter()
Method Detail |
---|
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(org.apache.log4j.spi.LoggingEvent event)
decide
in class org.apache.log4j.spi.Filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras Companion for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.