code: public void toRfc5425SyslogMessage(Writer out) throws IOException {
  
          String rfc5424Message = toRfc5424SyslogMessage();
          int length = rfc5424Message.getBytes(StandardCharsets.UTF_8).length;
          out.write(String.valueOf(length));
          out.write(SP);
          out.write(rfc5424Message);
      }
docs: Generates an <a href="http://tools.ietf.org/html/rfc5425">RFC-5425</a> message.