You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by du...@apache.org on 2022/07/04 03:06:17 UTC

[rocketmq] branch develop updated: [ISSUE #4461] Support to change the logger level dynamically (#4547)

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

duhengforever pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git


The following commit(s) were added to refs/heads/develop by this push:
     new 8a4844537 [ISSUE #4461] Support to change the logger level dynamically (#4547)
8a4844537 is described below

commit 8a48445377a838e6ecdd08f835ff0eab1bd31ab9
Author: Oliver <wq...@163.com>
AuthorDate: Mon Jul 4 11:06:09 2022 +0800

    [ISSUE #4461] Support to change the logger level dynamically (#4547)
    
    * Support to change the logger level dynamically
    
    * Adjust interval
---
 distribution/conf/logback_broker.xml  | 2 +-
 distribution/conf/logback_namesrv.xml | 2 +-
 distribution/conf/logback_tools.xml   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/distribution/conf/logback_broker.xml b/distribution/conf/logback_broker.xml
index 8113ac9c2..f912d77b6 100644
--- a/distribution/conf/logback_broker.xml
+++ b/distribution/conf/logback_broker.xml
@@ -16,7 +16,7 @@
   limitations under the License.
   -->
 
-<configuration>
+<configuration scan="true" scanPeriod="30 seconds">
     <appender name="DefaultAppender"
               class="ch.qos.logback.core.rolling.RollingFileAppender">
         <file>${user.home}/logs/rocketmqlogs/${brokerLogDir}/broker_default.log</file>
diff --git a/distribution/conf/logback_namesrv.xml b/distribution/conf/logback_namesrv.xml
index 36eda6801..af25fa06b 100644
--- a/distribution/conf/logback_namesrv.xml
+++ b/distribution/conf/logback_namesrv.xml
@@ -16,7 +16,7 @@
   limitations under the License.
   -->
 
-<configuration>
+<configuration scan="true" scanPeriod="30 seconds">
     <appender name="DefaultAppender"
               class="ch.qos.logback.core.rolling.RollingFileAppender">
         <file>${user.home}/logs/rocketmqlogs/namesrv_default.log</file>
diff --git a/distribution/conf/logback_tools.xml b/distribution/conf/logback_tools.xml
index 28283ad1d..dd7f1415a 100644
--- a/distribution/conf/logback_tools.xml
+++ b/distribution/conf/logback_tools.xml
@@ -16,7 +16,7 @@
   limitations under the License.
   -->
 
-<configuration>
+<configuration scan="true" scanPeriod="30 seconds">
     <appender name="DefaultAppender"
               class="ch.qos.logback.core.rolling.RollingFileAppender">
         <file>${user.home}/logs/rocketmqlogs/tools_default.log</file>