LogMessages.Message message = LogMessages.Message.parseFrom(rawMessage);
ApplicationLog.MessageType messageType =
message.getMessageType() == LogMessages.Message.MessageType.OUT ?
ApplicationLog.MessageType.STDOUT :
ApplicationLog.MessageType.STDERR;
listener.onMessage(new ApplicationLog(message.getAppId(),
message.getMessage().toStringUtf8(),
new Date(message.getTimestamp() / NANOSECONDS_IN_MILLISECOND),
messageType,
message.getSourceName(), message.getSourceId()));
} catch (InvalidProtocolBufferException e) {