File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
log4j-core/src/main/java/org/apache/logging/log4j/core/appender Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments