YngwieWang commented on a change in pull request #8350:
[FLINK-12403][doc-zh]Translate 'How to use logging' page into Chinese
URL: https://github.com/apache/flink/pull/8350#discussion_r310376161
##########
File path: docs/monitoring/logging.zh.md
##########
@@ -23,28 +23,25 @@ specific language governing permissions and limitations
under the License.
-->
-The logging in Flink is implemented using the slf4j logging interface. As
underlying logging framework, log4j is used. We also provide logback
configuration files and pass them to the JVM's as properties. Users willing to
use logback instead of log4j can just exclude log4j (or delete it from the lib/
folder).
+Flink 的日志记录是通过 slf4j 日志接口实现的。默认使用 log4j 作为日志框架,同时也提供 logback 配置文件并以属性形式传给
JVM。开发者如果想使用 logback 来代替 log4j 的话,只需要从依赖里排除或目录里删掉 log4j。
* This will be replaced by the TOC
{:toc}
-## Configuring Log4j
+## Log4j 配置
-Log4j is controlled using property files. In Flink's case, the file is usually
called `log4j.properties`. We pass the filename and location of this file using
the `-Dlog4j.configuration=` parameter to the JVM.
+Log4j 是通过属性文件来配置的,在 Flink 中这个文件叫 `log4j.properties`。我们可以将文件名和文件路径通过
`-Dlog4j.configuration=` 传给JVM。
-Flink ships with the following default properties files:
+Flink 默认会使用下面的 properties 文件:
Review comment:
```suggestion
Flink 附带以下默认属性文件:
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services