Skip to content

Commit 6dc466a

Browse files
authored
Merge branch '2.x' into map-sizing-helpers
2 parents 013d8a9 + 2f79c39 commit 6dc466a

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

log4j-core/src/main/java/org/apache/logging/log4j/core/appender/ConsoleAppender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public static ConsoleAppender createAppender(
162162
return newBuilder()
163163
.setLayout(layout)
164164
.setFilter(filter)
165-
.setTarget(target)
165+
.setTarget(target == null ? DEFAULT_TARGET : target)
166166
.setName(name)
167167
.setFollow(follow)
168168
.setDirect(direct)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<entry xmlns="https://logging.apache.org/xml/ns"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="
5+
https://logging.apache.org/xml/ns
6+
https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
7+
type="fixed">
8+
<issue id="3852" link="https://github.com/apache/logging-log4j2/pull/3852"/>
9+
<description format="asciidoc">
10+
Fix missing default `Target` value in Console Appender.
11+
</description>
12+
</entry>

0 commit comments

Comments
 (0)