[logback-dev] [JIRA] (LOGBACK-1475) SyslogOutputStream ignores IP address changes for Syslog DNS host
QOS.CH (JIRA)
noreply-jira at qos.ch
Thu Jul 4 12:02:00 CEST 2019
Simon Dean created LOGBACK-1475:
-----------------------------------
Summary: SyslogOutputStream ignores IP address changes for Syslog DNS host
Key: LOGBACK-1475
URL: https://jira.qos.ch/browse/LOGBACK-1475
Project: logback
Issue Type: Bug
Components: logback-core
Affects Versions: 1.2.3
Reporter: Simon Dean
Assignee: Logback dev list
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.
--
This message was sent by Atlassian JIRA
(v7.3.1#73012)
More information about the logback-dev
mailing list