|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LogService
Provides access to log messages.
| Method Summary | |
|---|---|
Iterable<LogMessage> |
query(LogQuery query,
long startTs,
long endTs)
Selects logs messages of the specified time interval. |
Iterable<LogMessage> |
tail(LogQuery query,
int startPositionInBytes)
Performs ongoing tailing of the logs messages starting from the given position relative to the end. |
| Method Detail |
|---|
Iterable<LogMessage> tail(LogQuery query,
int startPositionInBytes)
throws LogServiceException,
UnsupportedLogQueryException
E.g. tail(query, 1024) will return last 1KB of messages and continue to output as new data appears.
query - specifies which messages to selectstartPositionInBytes - position to start tailing from. It is relative to the end position.
LogServiceException - request cannot be completed.
UnsupportedLogQueryException - when given query is not supported by the back-end.
Iterable<LogMessage> query(LogQuery query,
long startTs,
long endTs)
throws LogServiceException,
UnsupportedLogQueryException
query - specifies which messages to selectstartTs - start point of the time range selectionendTs - end point of the time range selection
UnsupportedLogQueryException - when given query is not supported by the back-end.
LogServiceException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||