271272273274275276277278279
appendMessageId(buf, event.getMessage()); appendSpace(buf); appendStructuredElements(buf, event); appendMessage(buf, event); if (useTLSMessageFormat) { return new TLSSyslogFrame(buf.toString()).toString(); } return buf.toString(); }