public interface LogReader extends Iterator<LogRecord>
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the log reader and release all used resources.
|
ch.qos.logback.core.Appender<?> |
getAppender()
Logging appender associated with this reader.
|
Date |
getEndDate()
End (latest) date of of the log records returned by this log reader.
|
LogLevel |
getLevel()
Level of the log records returned by this log reader.
|
int |
getLimit()
Max.
|
Date |
getMaxDate()
Max (latest) available date of the log records.
|
Date |
getMinDate()
Min (earliest) available date of the log records.
|
int |
getOffset()
Index of the first record returned by this log reader.
|
Date |
getStartDate()
Start (earliest) date of the log records returned by this log reader.
|
String |
getThread()
Thread name of the log records returned by this log reader.
|
List<String> |
getThreadNames()
All available thread names of the log records.
|
void |
init()
Initialize the log reader.
|
boolean |
isMoreAvailable()
Check if more records are available after limit is reached.
|
void |
setAppender(ch.qos.logback.core.Appender<?> appender)
Logging appender associated with this reader.
|
void |
setEndDate(Date date)
End (latest) date of of the log records returned by this log reader.
|
void |
setLevel(LogLevel level)
Level of the log records returned by this log reader.
|
void |
setLimit(int limit)
Max.
|
void |
setOffset(int offset)
Index of the first record returned by this log reader.
|
void |
setStartDate(Date date)
Start (earliest) date of the log records returned by this log reader.
|
void |
setThread(String threadname)
Thread name of the log records returned by this log reader.
|
boolean |
supportsDateRanges()
Test if this LogReader implementation supports date-based records filtering.
|
boolean |
supportsLevelFilter()
Test if this LogReader implementation supports level-based records filtering.
|
boolean |
supportsThreadFilter()
Test if this LogReader implementation supports thread-based records filtering.
|
forEachRemaining, hasNext, next, remove
void destroy() throws Exception
Exception
void setAppender(ch.qos.logback.core.Appender<?> appender)
appender
- logging appender associated with this readerch.qos.logback.core.Appender<?> getAppender()
void setLimit(int limit)
limit
- max. number of records returned by this log reader.int getLimit()
boolean isMoreAvailable()
void setOffset(int offset)
offset
- index of the first record returned by this log reader.int getOffset()
boolean supportsLevelFilter()
void setLevel(LogLevel level)
level
- log levelLogLevel getLevel()
boolean supportsThreadFilter()
void setThread(String threadname)
threadname
- thread nameString getThread()
List<String> getThreadNames()
boolean supportsDateRanges()
void setStartDate(Date date)
Date getStartDate()
void setEndDate(Date date)
date
- end dateDate getEndDate()
Date getMinDate()
Date getMaxDate()
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.