You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2022/06/06 10:24:48 UTC

[shardingsphere] branch master updated: add logback.xml for shardingsphere-proxy when it started (#18199)

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

panjuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 0f778f42002 add logback.xml for shardingsphere-proxy when it started (#18199)
0f778f42002 is described below

commit 0f778f420027f455220afeab597d9b6e5ff88146
Author: Ghoul_Lee <wi...@gmail.com>
AuthorDate: Mon Jun 6 18:24:42 2022 +0800

    add logback.xml for shardingsphere-proxy when it started (#18199)
---
 .../shardingsphere-proxy/startup/helm.cn.md        |  2 +-
 .../shardingsphere-proxy/startup/helm.en.md        |  2 +-
 shardingsphere-charts/README.md                    |  2 +-
 shardingsphere-charts/README_ZH.md                 |  2 +-
 .../shardingsphere-proxy/templates/configmap.yaml  | 30 ++++++++++++++++++++++
 5 files changed, 34 insertions(+), 4 deletions(-)

diff --git a/docs/document/content/user-manual/shardingsphere-proxy/startup/helm.cn.md b/docs/document/content/user-manual/shardingsphere-proxy/startup/helm.cn.md
index 5fafbc9a26b..3160d8b3537 100644
--- a/docs/document/content/user-manual/shardingsphere-proxy/startup/helm.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-proxy/startup/helm.cn.md
@@ -22,7 +22,7 @@ helm install shardingsphere-proxy shardingsphere/shardingsphere-proxy
 
 3. helm 3.2.0+
 
-可以动态申请 PV(Persistent Volumes) 的 StorageClass 已持久化数据。
+可以动态申请 PV(Persistent Volumes) 的 StorageClass(可选)。
 
 ### 安装
 
diff --git a/docs/document/content/user-manual/shardingsphere-proxy/startup/helm.en.md b/docs/document/content/user-manual/shardingsphere-proxy/startup/helm.en.md
index 5a872137562..232f5d44319 100644
--- a/docs/document/content/user-manual/shardingsphere-proxy/startup/helm.en.md
+++ b/docs/document/content/user-manual/shardingsphere-proxy/startup/helm.en.md
@@ -22,7 +22,7 @@ helm install shardingsphere-proxy shardingsphere/shardingsphere-proxy
 
 3. Helm 3.2.0+
 
-Use StorageClass to allow dynamic provisioning of Persistent Volumes (PV) for data persistent.
+Use StorageClass to allow dynamic provisioning of Persistent Volumes (PV) for data persistent (optional).
 
 ### Install
 
diff --git a/shardingsphere-charts/README.md b/shardingsphere-charts/README.md
index ee9f1b9867c..227962eb5e6 100644
--- a/shardingsphere-charts/README.md
+++ b/shardingsphere-charts/README.md
@@ -19,7 +19,7 @@ kubectl
 
 Helm 3.2.0+
 
-Use StorageClass to allow dynamic provisioning of Persistent Volumes (PV) for data persistent.
+Use StorageClass to allow dynamic provisioning of Persistent Volumes (PV) for data persistent (optional).
 
 ### Install
 
diff --git a/shardingsphere-charts/README_ZH.md b/shardingsphere-charts/README_ZH.md
index 21981c30d5e..65e4e2d4fb3 100644
--- a/shardingsphere-charts/README_ZH.md
+++ b/shardingsphere-charts/README_ZH.md
@@ -19,7 +19,7 @@ kubectl
 
 helm 3.2.0+
 
-可以动态申请 PV(Persistent Volumes) 的 StorageClass 已持久化数据。
+可以动态申请 PV(Persistent Volumes) 的 StorageClass (可选)。
 
 ### 安装
 
diff --git a/shardingsphere-charts/shardingsphere-proxy/templates/configmap.yaml b/shardingsphere-charts/shardingsphere-proxy/templates/configmap.yaml
index 6d0934f3599..c205d30ebd0 100644
--- a/shardingsphere-charts/shardingsphere-proxy/templates/configmap.yaml
+++ b/shardingsphere-charts/shardingsphere-proxy/templates/configmap.yaml
@@ -23,3 +23,33 @@ metadata:
 data:
   server.yaml: |-
   {{- include "common.tplvalues.render" (dict "value" .Values.compute.serverConfig "context" $) | nindent 4 }}
+  logback.xml: |-
+    <?xml version="1.0"?>
+    <configuration>
+    <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
+    <encoder>
+    <pattern>[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %logger{36} - %msg%n</pattern>
+    </encoder>
+    </appender>
+    <logger name="org.apache.shardingsphere" level="info" additivity="false">
+    <appender-ref ref="console" />
+    </logger>
+
+    <logger name="com.zaxxer.hikari" level="error">
+    <appender-ref ref="console" />
+    </logger>
+
+    <logger name="com.atomikos" level="error">
+    <appender-ref ref="console" />
+    </logger>
+
+    <logger name="io.netty" level="error">
+    <appender-ref ref="console" />
+    </logger>
+
+    <root>
+    <level value="info" />
+    <appender-ref ref="console" />
+    </root>
+    </configuration>
+