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

SyslogOutputStream ignores IP address changes for Syslog host

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.3
    • Fix Version/s: 1.3.0-alpha6
    • Component/s: logback-core
    • Labels:
      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

            • Assignee:
              logback-dev Logback dev list
              Reporter:
              msmsimondean Simon Dean
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: