Robert Ross created LOG4J2-2324:
-----------------------------------
Summary: PatternLayout handling of Throwable alternate separator
doesn't accept special characters?
Key: LOG4J2-2324
URL: https://issues.apache.org/jira/browse/LOG4J2-2324
Project: Log4j 2
Issue Type: Bug
Components: Layouts
Affects Versions: 2.11.0
Reporter: Robert Ross
When attempting to use an alternate line separator for Throwable stack lines,
it seems impossible to use special characters like {{\t \r \n}} or anything
else. It also seems impossible to use variable references. Uses of {{\t \r
\n}} or anything else are converted to plain text, actually resulting in "\t"
in the output.
{code:xml}
%-5level - %d{yyyy.MM.dd hh:mm:ss zzz} [%t @ %logger{1}] -
%msg%n%ex{separator(\r\n\t)}%n
{code}
If there's a way to do this, it isn't clear in the documentation.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)