From fef811865d34f9deb527d13eca1e52756b8d1087 Mon Sep 17 00:00:00 2001 From: MrVein <75935224+MrVein@users.noreply.github.com> Date: Tue, 16 Mar 2021 09:12:55 +0330 Subject: [PATCH 1/2] Update 8_Boundaries.md --- 8_Boundaries/8_Boundaries.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/8_Boundaries/8_Boundaries.md b/8_Boundaries/8_Boundaries.md index 3fb1558..8320606 100644 --- a/8_Boundaries/8_Boundaries.md +++ b/8_Boundaries/8_Boundaries.md @@ -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. From a503e34c80f8c4b78e7075a3c51c816311f6b23a Mon Sep 17 00:00:00 2001 From: MrVein Date: Wed, 17 Mar 2021 19:26:11 +0330 Subject: [PATCH 2/2] my part translated --- 8_Boundaries/8_Boundaries.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/8_Boundaries/8_Boundaries.md b/8_Boundaries/8_Boundaries.md index 8320606..0129179 100644 --- a/8_Boundaries/8_Boundaries.md +++ b/8_Boundaries/8_Boundaries.md @@ -167,7 +167,7 @@ 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. -جالب است وقتی توافق ConsoleAppend.SystemOut را حذف میکنیم ، میبینیم که "hello" هنوز چاپ نشده .اما وقتی "PatternLayout" را حذف میکنیم از فقدان جربان خروجی (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