Description
I don't need MDC information, but must setting mdcId. if not set mdcId, throw a IllegalArgumentException;
Configruation
<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" "/>
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
Attachments
Issue Links
- is related to
-
LOG4J2-2636 No default value for mdcId in SyslogAppender
- Reopened