Filters and retrieves entries from an Unwired Server log.
void setLogPosition(LogPositionVO logPosition) throws SUPAdminException; Collection<LogEntryVO> getLogEntries(Integer start, Integer end) throws SUPAdminException; Collection<LogEntryVO> getLogEntries(Integer start, Integer end, Boolean includingBackup) throws SUPAdminException;
If successful, returns an object of the specified type (can be null). If unsuccessful, returns SUPAdminException.
supServerLog.setLogPosition(LogPositionVO.START); for (LogEntryVO levo : supServerLog.getLogEntries(100, 250)) { System.out.println(levo.getBucket()); } for (LogEntryVO levo : supServerLog.getLogEntries(100, 250, true)) { System.out.println(levo.getBucket()); }
supServerLog.setLogPosition(LogPositionVO.END); for (LogEntryVO levo : supServerLog.getLogEntries(-100, -250)) { System.out.println(levo.getBucket()); } for (LogEntryVO levo : supServerLog.getLogEntries(-100, -250, true)) { System.out.println(levo.getBucket()); }