You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Matt Sicker (JIRA)" <ji...@apache.org> on 2016/07/24 00:01:35 UTC

[jira] [Commented] (LOG4J2-922) Parameter of mdcId in SyslogAppender has no default value.

    [ https://issues.apache.org/jira/browse/LOG4J2-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15390878#comment-15390878 ] 

Matt Sicker commented on LOG4J2-922:
------------------------------------

That commit is from before 2.0 was ever released (probably from before 2.0-alpha1 even). Strange that this issue would have been reported in the first place, then.

> Parameter of mdcId in SyslogAppender has no default value.
> ----------------------------------------------------------
>
>                 Key: LOG4J2-922
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-922
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders
>            Reporter: angus.aqlu
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> I don't need MDC information, but must setting mdcId.  if not set mdcId, throw a IllegalArgumentException;
> {code:xml|title=Configruation|borderStyle=solid}
> <Syslog name="RFC5424" charset="UTF-8" format="RFC5424" host="192.168.65.181" port="13514" protocol="UDP"
>                 appName="testApp" includeMDC="false" facility="USER"
>                 newline="true" messageId="Audit" "/>
> {code}
> {code:title=exception info}
> Caused by: java.lang.IllegalArgumentException: No structured id name was supplied
> 	at org.apache.logging.log4j.message.StructuredDataId.<init>(StructuredDataId.java:92)
> 	at org.apache.logging.log4j.core.layout.Rfc5424Layout.<init>(Rfc5424Layout.java:139)
> 	at org.apache.logging.log4j.core.layout.Rfc5424Layout.createLayout(Rfc5424Layout.java:657)
> 	at org.apache.logging.log4j.core.appender.SyslogAppender.createAppender(SyslogAppender.java:133)
> 	... 25 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org