File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed
log4j-api/src/main/java/org/apache/logging/log4j/status
log4j-core-test/src/test/java/org/apache/logging/log4j/core/appender/rolling/action Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ public String getFormattedStatus() {
182
182
effectiveThrowable = throwable ;
183
183
}
184
184
if (effectiveThrowable != null ) {
185
- sb .append (SPACE );
185
+ sb .append (System . lineSeparator () );
186
186
final ByteArrayOutputStream baos = new ByteArrayOutputStream ();
187
187
effectiveThrowable .printStackTrace (new PrintStream (baos ));
188
188
/*
Original file line number Diff line number Diff line change @@ -47,8 +47,9 @@ void testExceptionsAreLoggedToStatusLogger() {
47
47
assertThat (
48
48
formattedMessage ,
49
49
containsString ("Exception reported by action 'class org.apache."
50
- + "logging.log4j.core.appender.rolling.action.AbstractActionTest$TestAction' java.io.IOException: "
51
- + "failed" + System .lineSeparator ()
50
+ + "logging.log4j.core.appender.rolling.action.AbstractActionTest$TestAction'"
51
+ + System .lineSeparator ()
52
+ + "java.io.IOException: failed" + System .lineSeparator ()
52
53
+ "\t at org.apache.logging.log4j.core.appender.rolling.action.AbstractActionTest"
53
54
+ "$TestAction.execute(AbstractActionTest.java:" ));
54
55
}
Original file line number Diff line number Diff line change 4
4
xsi : schemaLocation =" https://logging.apache.org/xml/ns https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
5
5
type =" changed" >
6
6
<issue id =" 3045" link =" https://github.com/apache/logging-log4j2/pull/3045" />
7
- <description format =" asciidoc" >Change the whitespace prefixing logic in Pattern Layout</description >
7
+ <description format =" asciidoc" >Switch prefixing stack traces in Pattern Layout from whitespace to newline </description >
8
8
</entry >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <entry xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xmlns =" https://logging.apache.org/xml/ns"
4
+ xsi : schemaLocation =" https://logging.apache.org/xml/ns https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
5
+ type =" changed" >
6
+ <issue id =" 3149" link =" https://github.com/apache/logging-log4j2/pull/3149" />
7
+ <description format =" asciidoc" >Switch prefixing stack traces in Status Logger from whitespace to newline</description >
8
+ </entry >
You can’t perform that action at this time.
0 commit comments