//Parse filter, max, offset and escape
LogRequestArguments logArgs = decodeLogArgs(request);
int maxEvents = logArgs.getMaxEvents();
long fromOffset = logArgs.getFromOffset();
boolean escape = logArgs.getEscape();
Filter filter = FilterParser.parse(logArgs.getFilter());
LoggingContext loggingContext =
LoggingContextHelper.getLoggingContext(accountId, appId,
entityId, getEntityType(EntityType.valueOf(entityType)));
LogReaderCallback logCallback = new LogReaderCallback(responder, logPattern, escape);