You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2020/06/18 09:52:10 UTC

[servicecomb-docs] branch master updated: [SCB-2012]add document about log4j2 dependency change

This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-docs.git


The following commit(s) were added to refs/heads/master by this push:
     new 3371e9f  [SCB-2012]add document about log4j2 dependency change
3371e9f is described below

commit 3371e9fcdbf9062dff6d3e77e73ffabb7b0dbdc1
Author: liubao <bi...@qq.com>
AuthorDate: Thu Jun 18 10:30:02 2020 +0800

    [SCB-2012]add document about log4j2 dependency change
---
 .../docs/featured-topics/upgrading/2_0_1T2_1_0.md   | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/java-chassis-reference/zh_CN/docs/featured-topics/upgrading/2_0_1T2_1_0.md b/java-chassis-reference/zh_CN/docs/featured-topics/upgrading/2_0_1T2_1_0.md
index 036dc9b..bf4c21e 100644
--- a/java-chassis-reference/zh_CN/docs/featured-topics/upgrading/2_0_1T2_1_0.md
+++ b/java-chassis-reference/zh_CN/docs/featured-topics/upgrading/2_0_1T2_1_0.md
@@ -83,3 +83,24 @@ servicecomb:
     validation:
       useResourceBundleMessageInterpolator: true
 ```
+
+## Logger 系统的变化
+
+servicecomb 默认使用 Slf4j 记录日志,不集成具体实现,开发者可以通过引入具体的实现依赖使用不同的 Logger。
+早期的版本 `solution-basic` 包含了 log4j2 的依赖, 2.1.0 移除了这部分依赖, 开发者如果通过这种方式
+使用 log4j2 , 可能需要显示的增加 log4j2 的依赖, 比如:
+
+```xml
+    <dependency>
+      <groupId>org.apache.logging.log4j</groupId>
+      <artifactId>log4j-slf4j-impl</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.logging.log4j</groupId>
+      <artifactId>log4j-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.logging.log4j</groupId>
+      <artifactId>log4j-core</artifactId>
+    </dependency>
+```
\ No newline at end of file