Long seq = JsonHelper.getAsLong(ev, IFabric8JsonConstants.PROPERTY_LOGEVENT_SEQ);
String threadName = JsonHelper.getAsString(ev, IFabric8JsonConstants.PROPERTY_LOGEVENT_THREAD);
Date eventTimestamp = new Date(JsonHelper.getAsLong(ev, IFabric8JsonConstants.PROPERTY_LOGEVENT_TIMESTAMP));
Map<String, String> propertiesMap = JsonHelper.getAsPropertiesMap(ev, IFabric8JsonConstants.PROPERTY_LOGEVENT_PROPERTIES);
LogEvent event = new LogEvent();
event.setClassName(className);
event.setContainerName(container);
event.setException(exception);
event.setFileName(fileName);
event.setHost(Strings.isBlank(eventhost) ? host : eventhost);
event.setLevel(logLevel);
event.setLineNumber(lineNo);
event.setLogger(logger);
event.setMessage(logMessage);
event.setMethodName(methodName);
event.setSeq(seq);
event.setThread(threadName);
event.setTimestamp(eventTimestamp);
event.setProperties(propertiesMap);
res.addEvent(event);
}
return res.getEvents();