public class FileLogReader extends AbstractLogReader
Constructor and Description |
---|
FileLogReader()
Constructor
|
FileLogReader(File logFile)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the log reader and release all used resources.
|
boolean |
hasNext() |
void |
init()
Initialize the log reader.
|
boolean |
isMoreAvailable()
Check if more records are available after limit is reached.
|
LogRecord |
next() |
void |
setAppender(ch.qos.logback.core.Appender<?> appender)
Logging appender associated with this reader.
|
getAppender, getEndDate, getLevel, getLimit, getMaxDate, getMinDate, getOffset, getStartDate, getThread, getThreadNames, remove, setEndDate, setLevel, setLimit, setOffset, setStartDate, setThread, supportsDateRanges, supportsLevelFilter, supportsThreadFilter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public FileLogReader()
public FileLogReader(File logFile)
logFile
- public void setAppender(ch.qos.logback.core.Appender<?> appender)
LogReader
setAppender
in interface LogReader
setAppender
in class AbstractLogReader
appender
- logging appender associated with this readerpublic void init() throws Exception
LogReader
Exception
public boolean isMoreAvailable()
LogReader
public boolean hasNext()
hasNext
in interface Iterator<LogRecord>
hasNext
in class AbstractLogReader
public LogRecord next()
next
in interface Iterator<LogRecord>
next
in class AbstractLogReader
public void destroy() throws IOException
LogReader
IOException
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.