Replacement for Logback LevelRemappingAppender in Spring Boot 2?

吃可爱长大的小学妹 提交于 2020-01-02 04:41:06

问题


I'm migrating an application from Spring Boot 1.x to 2.x and I found some entries in the logback configuration which use a LevelRemappingAppender, like this:

<appender name="DEBUG_LEVEL_REMAPPER" class="org.springframework.boot.logging.logback.LevelRemappingAppender">
    <destinationLogger>org.springframework.boot</destinationLogger>
</appender>

org.springframework.boot.logging.logback.LevelRemappingAppender doesn't exist in Boot 2 and I can't find a replacement nor any mention in the migration guide.

Is there an easy way to include this Logback remapping functionality in Spring Boot 2?

来源:https://stackoverflow.com/questions/50407297/replacement-for-logback-levelremappingappender-in-spring-boot-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!