public final class TimeFilter extends AbstractFilter
Filter.ResultLOGGER, onMatch, onMismatch| Modifier and Type | Method and Description |
|---|---|
static TimeFilter |
createFilter(String start,
String end,
String tz,
String match,
String mismatch)
Create a TimeFilter.
|
Filter.Result |
filter(LogEvent event)
Context Filter method.
|
String |
toString() |
filter, filter, filter, getOnMatch, getOnMismatch, isStarted, start, stoppublic Filter.Result filter(LogEvent event)
AbstractFilterfilter in interface Filterfilter in class AbstractFilterevent - The LogEvent.public String toString()
toString in class AbstractFilterpublic static TimeFilter createFilter(String start, String end, String tz, String match, String mismatch)
start - The start time.end - The end time.tz - timezone.match - Action to perform if the time matches.mismatch - Action to perform if the action does not match.Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.