You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/03/01 03:21:00 UTC
[GitHub] [servicecomb-java-chassis] tiger-super opened a new issue #2257: 日志不输出
tiger-super opened a new issue #2257:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2257
我升级到java-chassis 2.0.0 以上 + spring boot 2.0后,access.log、request.log、cse.log不管怎么发交易都为空的,请问一下整合springboot后这些配置是否有变化



----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [servicecomb-java-chassis] liubao68 edited a comment on issue #2257: 日志不输出
Posted by GitBox <gi...@apache.org>.
liubao68 edited a comment on issue #2257:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2257#issuecomment-787915524
估计是logger系统变化了。 spring boot默认携带的是 logback 作为日志系统。 你发的配置文件是 log4j 的。
REST over servlet 模式, 不会有 request.og和access.log, 这个是 REST over vert.x特有的。
参考多协议介绍:https://docs.servicecomb.io/java-chassis/zh_CN/transports/introduction/
日志介绍:https://docs.servicecomb.io/java-chassis/zh_CN/general-development/config-logs/
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [servicecomb-java-chassis] liubao68 edited a comment on issue #2257: 日志不输出
Posted by GitBox <gi...@apache.org>.
liubao68 edited a comment on issue #2257:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2257#issuecomment-787915524
估计是logger系统变化了。 spring boot默认携带的是 logback 作为日志系统。 你发的配置文件是 log4j 的。
REST over servlet 模式, 不会有 request.og和access.log, 这个是 REST over vert.x特有的。
参考多协议介绍:https://docs.servicecomb.io/java-chassis/zh_CN/transports/introduction/
日志介绍:https://docs.servicecomb.io/java-chassis/zh_CN/general-development/config-logs/
spring boot也分servlet模式和vert.x, 介绍参考:https://docs.servicecomb.io/java-chassis/zh_CN/using-java-chassis-in-spring-boot/using-java-chassis-in-spring-boot/
servicecomb-sample有这两种模式的例子。
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2257: 日志不输出
Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #2257:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2257#issuecomment-787915524
估计是logger系统变化了。 spring boot默认携带的是 logback 作为日志系统。 你发的配置文件是 log4j 的。
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [servicecomb-java-chassis] tiger-super commented on issue #2257: 日志不输出
Posted by GitBox <gi...@apache.org>.
tiger-super commented on issue #2257:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2257#issuecomment-788543501
log4j试了一天冲突太多搞不出来,logback是可以的,还有org.apache.servicecomb.transport.rest.vertx.accesslog.parser.VertxRestAccessLogItemMeta变成了org.apache.servicecomb.common.accessLog.core.parser.VertxRestAccessLogItemMeta,这个也坑死我了,还以为自己哪里没有配对
----------------------------------------------------------------
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:
users@infra.apache.org