This is an automated email from the ASF dual-hosted git repository.
aaronai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-clients.git
The following commit(s) were added to refs/heads/master by this push:
new 087479a0 Polish docs (#338)
087479a0 is described below
commit 087479a03efeb0afecb4c711ecfd96fdc6a59f37
Author: Aaron Ai <[email protected]>
AuthorDate: Wed Jan 4 15:56:14 2023 +0800
Polish docs (#338)
---
java/README-CN.md | 2 +-
java/README.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/java/README-CN.md b/java/README-CN.md
index c077671e..d80e6153 100644
--- a/java/README-CN.md
+++ b/java/README-CN.md
@@ -66,7 +66,7 @@ implementation
'org.apache.rocketmq:rocketmq-client-java-noshade:${rocketmq.vers
客户端提供了一些可配置的日志参数,均支持 JVM 系统参数(示例: `java -Drocketmq.log.level=INFO -jar
foobar.jar`)或环境变量指定:
* `rocketmq.log.level`: 日志输出级别,默认为 INFO。
-* `rocketmq.log.root`: 日志输出根目录,默认为当前用户的 HOME 目录。
+* `rocketmq.log.root`: 日志输出根目录,默认为 `$HOME/logs/rocketmq`,此时日志输出路径为
`$HOME/logs/rocketmq/rocketmq-client.log`。注意:文件名 `rocketmq-client.log` 不可改。
* `rocketmq.log.file.maxIndex`: 日志文件最大保留个数,默认为 10(单个日志文件大小限制为 64 MB,暂不支持调整)。
特别地,如果有调试的需求,可以通过把 `mq.consoleAppender.enabled` 设置成 `true` 将客户端的日志同时输出到控制台。
diff --git a/java/README.md b/java/README.md
index 060a04dd..d7089ff7 100644
--- a/java/README.md
+++ b/java/README.md
@@ -64,7 +64,7 @@ We picked [Logback](https://logback.qos.ch/) and shaded it
into the client imple
The following logging parameters are all supported for specification by JVM
system parameters (for example, `java -Drocketmq.log.level=INFO -jar
foobar.jar`) or environment variables.
* `rocketmq.log.level`: log output level, default is INFO.
-* `rocketmq.log.root`: the root directory of the log output, default is the
current user's HOME directory.
+* `rocketmq.log.root`: the root directory of the log output, default is
`$HOME/logs/rocketmq`, so the full path is
`$HOME/logs/rocketmq/rocketmq-client.log`.
* `rocketmq.log.file.maxIndex`: the maximum number of log files to keep,
default is 10 (the size of a single log file is limited to 64 MB, no adjustment
is supported now).
Specifically, by setting `mq.consoleAppender.enabled` to 'true,' you can
output client logs to the console simultaneously if you need debugging.