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_r310377121
##########
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 时推荐使用它的占位符机制。使用占位符可以避免不必要的字符串拼接,比如日志级别太高以至于有些日志信息不会被记录。占位符的语法如下所示:
{% highlight java %}
LOG.info("This message contains {} placeholders. {}", 2, "Yippie");
{% endhighlight %}
-Placeholders can also be used in conjunction with exceptions which shall be
logged.
+占位符也可以跟异常结合使用。
Review comment:
```suggestion
占位符也可以与应记录的异常结合使用。
```
----------------------------------------------------------------
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