de.innovationgate.wga.common
public interface LogHandler
Modifier and Type | Field and Description |
---|---|
static int |
SEARCHTYPE_PLAINTEXT
Search type which searches for the given string as plaintext
|
static int |
SEARCHTYPE_REGEXP
Searchtype which searches for the given string as regular expression, matching a single applog line.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
getLastPage(int size,
LogLevel level)
Returns the end of the applog
|
java.util.List |
getPage(int from,
int size,
LogLevel level)
Gets an applog page.
|
java.util.List |
getPreviousPage(int start,
int size,
LogLevel level)
Returns the previous page from the given start position.
|
java.util.List |
search(int searchStartLine,
int size,
java.lang.String searchString,
int searchType,
boolean forward)
Performs a search on the applog.
|
static final int SEARCHTYPE_PLAINTEXT
static final int SEARCHTYPE_REGEXP
java.util.List getPage(int from, int size, LogLevel level) throws java.io.IOException
from
- Starting line of the pagesize
- Number of lineslevel
- Lowest loglevel to include in the page. Lower levels will be filtered.java.io.IOException
java.util.List getLastPage(int size, LogLevel level) throws java.io.IOException
size
- Number of lines to returnlevel
- Lowest loglevel to include in the page. Lower levels will be filtered.java.io.IOException
java.util.List getPreviousPage(int start, int size, LogLevel level) throws java.io.IOException
start
- The position to whom the previous page should be returnedsize
- The number of lines to retunlevel
- Lowest loglevel to include in the page. Lower levels will be filtered.java.io.IOException
java.util.List search(int searchStartLine, int size, java.lang.String searchString, int searchType, boolean forward) throws java.io.IOException
searchStartLine
- The starting line in applog from which to searchsize
- The number of result lines to returnsearchString
- The string to search for.searchType
- The type of search. Use constants SEARCHTYPE_....forward
- When true search direction is forward, when false it is backward in the logjava.io.IOException