Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1475

SyslogOutputStream ignores IP address changes for Syslog host

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 1.5.7
    • 1.2.3
    • logback-core
    • None

    Description

      The SyslogOutputStream converts the syslogHost to an IP address within its constructor.  This means that it only performs a DNS resolution for the Syslog host once, at start up.  If the IP address of the System host changes (and is updated in the DNS system) this class will never pick up the change. 

      The suggested fix is to move the DNS resolution from the constructor into the flush method. 

      Attachments

        Activity

          People

            logback-dev Logback dev list
            msmsimondean Simon Dean
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: