apache / apache/dubbo

springboot默认采用logback日志,建议dubbo默认采用Slf4j日志框架

Open
#9,475 1 comment 0 reactions 0 assignees View on GitHub
type/discussion
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

给spring boot配置logback-spring.xml日志配置文件,如果希望dubbo框架内的 LoggerFactory.getLogger(getClass())输出的日志logback日志中,需要制定system properties -Ddubbo.application.logger=slf4j。建议Slf4jLoggerAdapter设置为默认适配器。
![image](https://user-images.githubusercontent.com/93367066/147195369-56389351-87fd-4432-9e2b-ff393d4f889b.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.