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_r310377060
##########
File path: docs/monitoring/logging.zh.md
##########
@@ -81,15 +78,13 @@ import org.slf4j.Logger
Logger LOG = LoggerFactory.getLogger(Foobar.class)
{% endhighlight %}
-In order to benefit most from slf4j, it is recommended to use its placeholder
mechanism.
-Using placeholders allows to avoid unnecessary string constructions in case
that the logging level is set so high that the message would not be logged.
-The syntax of placeholders is the following:
+使用 slf4j 时推荐使用它的占位符机制。使用占位符可以避免不必要的字符串拼接,比如日志级别太高以至于有些日志信息不会被记录。占位符的语法如下所示:
Review comment:
```suggestion
为了最大化利用 slf4j,推荐使用它的占位符机制。
使用占位符可以避免不必要的字符串构造,以防日志级别设置得太高导致有些消息不会被记录。
占位符的语法如下所示:
```
----------------------------------------------------------------
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