Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion 8_Boundaries/8_Boundaries.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,13 @@ public void testLogAddAppender() {

That worked; a log message that includes “hello” came out on the console! It seems odd
that we have to tell the ConsoleAppender that it writes to the console.

Interestingly enough, when we remove the ConsoleAppender.SystemOut argument, we
see that “hello” is still printed. But when we take out the PatternLayout, it once again com-
plains about the lack of an output stream. This is very strange behavior.
plains about the lack of an output stream.
جالب است وقتی توافق ConsoleAppend.SystemOut را حذف میکنیم ، میبینیم که "hello" هنوز چاپ نشده .اما وقتی "PatternLayout" را حذف میکنیم از فقدان جربان خروجی (Output Stream) گله میکند...

This is very strange behavior.
Looking a little more carefully at the documentation, we see that the default
ConsoleAppender constructor is “unconfigured,” which does not seem too obvious or useful.
This feels like a bug, or at least an inconsistency, in log4j.
Expand Down