Class SyslogUdpPublisher

    • Constructor Detail

    • Method Detail

      • reconnect

        protected void reconnect()
                          throws IOException
        Description copied from class: SyslogPublisher
        Checks if the currently opened connection is still valid, and connects/reconnects to the Syslog server if necessary.
        Specified by:
        reconnect in class SyslogPublisher
        Throws:
        IOException - If there was an IO error while trying to connect to the Syslog server.
      • sendLogRecord

        protected void sendLogRecord​(byte[] bytes)
                              throws IOException
        Description copied from class: SyslogPublisher
        Sends the log record to the syslog server by the means of the chosen protocol (TCP or UDP).
        Specified by:
        sendLogRecord in class SyslogPublisher
        Parameters:
        bytes - The logRecord's byte[] representation.
        Throws:
        IOException - If there was an IO error while sending the audit entry to Syslog.