Details
Description
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 so one cannot use ${sys:line.separator} as well as other characters.
In the case of simple uses of \t \r \n or anything else are converted to plain text, actually resulting in "\t" in the output.
%-5level - %d{yyyy.MM.dd hh:mm:ss zzz} [%t @ %logger{1}] - %msg%n%ex{separator(\r\n\t)}%n
If there's a way to do this, it isn't clear in the documentation.
Attachments
Attachments
Issue Links
- relates to
-
LOG4J2-682 Special characters (tab and so on) in PatternLayout do not work
- Closed