angus.aqlu created LOG4J2-922:
---------------------------------
Summary: 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
Affects Versions: 2.1
Reporter: angus.aqlu
Fix For: 2.2
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: [email protected]
For additional commands, e-mail: [email protected]