Class SyslogAppenderBase<E>

    • Constructor Detail

      • SyslogAppenderBase

        public SyslogAppenderBase()
    • Method Detail

      • buildLayout

        public abstract Layout<E> buildLayout()
      • getSeverityForEvent

        public abstract int getSeverityForEvent​(Object eventObject)
      • facilityStringToint

        public static int facilityStringToint​(String facilityStr)
        Returns the integer value corresponding to the named syslog facility.
        IllegalArgumentException - if the facility string is not recognized
      • getSyslogHost

        public String getSyslogHost()
        Returns the value of the SyslogHost option.
      • setSyslogHost

        public void setSyslogHost​(String syslogHost)
        The SyslogHost option is the name of the the syslog host where log output should go. WARNING If the SyslogHost is not set, then this appender will fail.
      • setFacility

        public void setFacility​(String facilityStr)
        The Facility option must be set one of the strings KERN, USER, MAIL, DAEMON, AUTH, SYSLOG, LPR, NEWS, UUCP, CRON, AUTHPRIV, FTP, NTP, AUDIT, ALERT, CLOCK, LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. Case is not important.

        See SyslogConstants and RFC 3164 for more information about the Facility option.

      • getPort

        public int getPort()
      • setPort

        public void setPort​(int port)
        The port number on the syslog server to connect to. Normally, you would not want to change the default value, that is 514.
      • getMaxMessageSize

        public int getMaxMessageSize()
      • setMaxMessageSize

        public void setMaxMessageSize​(int maxMessageSize)
        Maximum size for the syslog message (in characters); messages longer than this are truncated. The default value is 65400 (which is near the maximum for syslog-over-UDP). Note that the value is characters; the number of bytes may vary if non-ASCII characters are present.
      • getLayout

        public Layout<E> getLayout()
      • setLayout

        public void setLayout​(Layout<E> layout)
      • getSuffixPattern

        public String getSuffixPattern()
        See {@link #setSuffixPattern(String).
      • setSuffixPattern

        public void setSuffixPattern​(String suffixPattern)
        The suffixPattern option specifies the format of the non-standardized part of the message sent to the syslog server.
        suffixPattern -
      • getCharset

        public Charset getCharset()
        Returns the Charset used to encode String messages into byte sequences when writing to syslog.
      • setCharset

        public void setCharset​(Charset charset)
        The Charset to use when encoding messages into byte sequences.
        charset -