You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (Jira)" <ji...@apache.org> on 2020/07/27 04:56:00 UTC
[jira] [Commented] (LOG4J2-2896) Missing Method : get Host in
SyslogAppender in Log4j 2.13.3
[ https://issues.apache.org/jira/browse/LOG4J2-2896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17165433#comment-17165433 ]
Ralph Goers commented on LOG4J2-2896:
-------------------------------------
Most Log4j Appenders have a Manager associated with them. When a reconfiguration occurs the Appender is always stopped and discarded but the Manager may be reused by the replacement Appender. Typically, many of the fields necessary for the specific Appender will be found there. In the case of the SyslogAppender the host property is in the AbstractSocketManager. However, there are no getters or setters for it since it is set in the constructor, is immutable, and is only used by the Appender.
> Missing Method : get Host in SyslogAppender in Log4j 2.13.3
> -----------------------------------------------------------
>
> Key: LOG4J2-2896
> URL: https://issues.apache.org/jira/browse/LOG4J2-2896
> Project: Log4j 2
> Issue Type: Question
> Components: Appenders
> Affects Versions: 2.13.3
> Reporter: Milind Pawar
> Priority: Blocker
> Fix For: 2.13.3
>
>
> Hi Team,
> While working with SyslogAppender in version log4j 2.13.3, I had a requirement to check if syslog had already been done for the host.
>
> But I don't find any method to get the Host details (either name/IP ) from syslogAppender.
>
> Note: with Log4j 1.x version there was a method - getSyslogHost() .
> Could you please check.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)