[
https://issues.apache.org/jira/browse/LOG4J2-925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14254510#comment-14254510
]
Alireza Fattahi edited comment on LOG4J2-925 at 12/20/14 4:42 AM:
------------------------------------------------------------------
The log4j2.xml I am using is as:
{{<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="info" name="Saba2">
<properties>
<property name="consolelayoutPattern">%-5p %-30.30c{2}
%m%n%rThrowable{full}</property>
</properties>
<Appenders>
<Console name="ConsoleAppender" target="SYSTEM_OUT">
<PatternLayout pattern="${consolelayoutPattern}" />
</Console>
</Appenders>
<Loggers>
<Root level="info">
<AppenderRef ref="ConsoleAppender" />
</Root>
</Loggers>
</Configuration> }}
was (Author: afattahi):
The log4j2.xml I am using is as:
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="info" name="Saba2">
<properties>
<property name="consolelayoutPattern">%-5p %-30.30c{2}
%m%n%rThrowable{full}</property>
</properties>
<Appenders>
<Console name="ConsoleAppender" target="SYSTEM_OUT">
<PatternLayout pattern="${consolelayoutPattern}" />
</Console>
</Appenders>
<Loggers>
<Root level="info">
<AppenderRef ref="ConsoleAppender" />
</Root>
</Loggers>
</Configuration>
> Log4j2 %rThrowable{full} not prinitng getLocalizedMessage
> ---------------------------------------------------------
>
> Key: LOG4J2-925
> URL: https://issues.apache.org/jira/browse/LOG4J2-925
> Project: Log4j 2
> Issue Type: Bug
> Components: Layouts
> Reporter: Alireza Fattahi
>
> It seems that the %rThrowable{full} pattern will not use
> {{getLocalizedMessage()}} by default, while the %Throwable{full} will out put
> it.
> The rThrowable{short.localizedMessage} is not working
> My pattern is:
> {code:xml}
> <property name="consolelayoutPattern">%-5p %-30.30c{2}
> %m%n%rThrowable{full}</property>
> {code}
> Any suggestion ?!
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]