zhengyangyong commented on a change in pull request #37: update
question-and-answer translation
URL:
https://github.com/apache/incubator-servicecomb-docs/pull/37#discussion_r211160771
##########
File path: java-chassis-reference/en_US/question-and-answer/question_answer.md
##########
@@ -33,33 +33,32 @@ public int test(int x) {
}
```
-# 问题描述: 如何定制自己微服务的日志配置
+# Problem: How to customize the log configuration of your own microservice
-** 解决方法:**
-ServiceComb不绑定日志器,只是使用了slf4j,用户可以自由选择log4j/log4j2/logback等等。ServiceComb提供了一个log4j的扩展,在标准log4j的基础上,支持log4j的properties文件的增量配置。
+** Solution:**
+ServiceComb does not bind the logger, use slf4j, users can freely choose
log4j/log4j2/logback and so on.
+ServiceComb provides a log4j extension that supports incremental configuration
of log4j's properties files on a standard log4j basis.
-* 默认以规则:"classpath\*:config/log4j.properties"加载配置文件
-* 实际会搜索出classpath中所有的`config/log4j.properties和config/log4j.*.properties`,
从搜索出的文件中切出`\*`的部分,进行alpha排序,然后按顺序加载,最后合成的文件作为log4j的配置文件。
-* 如果要使用ServiceComb的log4j扩展,则需要调用Log4jUtils.init,否则完全按标准的日志器的规则使用。
+* By default, the configuration file is loaded from the path:
"classpath\*:config/log4j.properties"
+* It will actually search all the `config/log4j.properties and
config/log4j.*.properties` in the classpath, cut out the `\*` part from the
searched file, sort the alpha, then load it in order, and finally compose The
file is used as the log4j configuration file.
+* If you want to use ServiceComb's log4j extension, you need to call
Log4jUtils.init, otherwise it will be used according to the rules of the
standard logger.
-# 问题描述: 当服务配置了多个transport的时候,在运行时是怎么选择使用哪个transport的?
+# Problem: When the service is configured with multiple transports, how do you
choose which transport to use at runtime?
Review comment:
how do you choose which transport to use at runtime? 好像不是这个意思
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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