[ https://issues.apache.org/jira/browse/LOG4J2-430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Gstir closed LOG4J2-430. ------------------------------ Is working. Thanks! > RFC5424Layout not working with parametrized messages > ---------------------------------------------------- > > Key: LOG4J2-430 > URL: https://issues.apache.org/jira/browse/LOG4J2-430 > Project: Log4j 2 > Issue Type: Bug > Components: Core > Affects Versions: 2.0-beta9, 2.0-rc1 > Environment: Java 1.7.0_40 > Reporter: David Gstir > Labels: patch > Fix For: 2.0-rc1 > > Attachments: rfc5424_parametrized_message_bug.patch > > > Syslog (i.e RFC5424Layout) does not work with parametrized messages. If I do > something like this: > {code} > logger.info("Hello {}", "World"); > {code} > I get this at the syslog server: > {code} > Oct 16 18:24:33 10.0.0.3 myApp Hello {} > {code} > This is the config file I'm using: > {code:xml:title=log4j2.xml} > <?xml version="1.0" encoding="UTF-8"?> > <Configuration> > <Appenders> > <Console name="STDOUT" target="SYSTEM_OUT"> > <PatternLayout pattern="%d{ISO8601}: %-5p [%t-%c{2}] - %m%n"/> > </Console> > <Syslog name="syslog" format="RFC5424" host="10.0.0.1" port="514" > protocol="TCP" appName="myApp" facility="LOCAL0" newLine="true" > includeMDC="true" id="App" reconnectionDelay="1000"/> > </Appenders> > <Loggers> > <Root level="debug"> > <AppenderRef ref="STDOUT"/> > <AppenderRef ref="syslog"/> > </Root> > </Loggers> > </Configuration> > {code} > The log to stdout is ok though. > Attached you find my patch for this bug. -- This message was sent by Atlassian JIRA (v6.1.5#6160) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org