【发布时间】:2020-06-01 10:24:24
【问题描述】:
这是我的简化 logback-spring.xml 配置:
<configuration>
<!-- appender config -->
<springProfile name=dev>
<!-- dev specific config here -->
</springProfile>
<springProfile name=prod>
<!-- prod specific config here -->
</springProfile>
<!-- other profiles -->
</configuration>
当我使用一些不同的配置文件运行我的应用程序时,我想获得一些默认的 logback 配置。我在logback-spring.xml 中找不到有关具有某些默认配置的信息。
请注意,定义的配置文件超过 2 个,我不知道其他临时配置文件的名称。
谢谢, 巴甫洛
【问题讨论】:
标签: spring logback spring-logback