code: public String createSyslogHeader(int facility, int level, String localName, boolean sendLocalTimestamp, boolean sendLocalName) {
          StringBuffer buffer = new StringBuffer();
  
          appendPriority(buffer, facility, level);
  
          if (sendLocalTimestamp) {
              appendTimestamp(buffer, new Date());
          }
  
          if (sendLocalName) {
              appendLocalName(buffer, localName);
          }
  
          return buffer.toString();
      }
docs: /* (non-Javadoc)
  @see org.graylog2.syslog4j.SyslogMessageProcessorIF#createSyslogHeader(int, int, java.lang.String, boolean, boolean)
  
  This is compatible with BSD protocol