如何覆盖logback-spring.xml文件appender config?

如何覆盖logback-spring.xml文件appender config?,spring,logback,spring-logback,Spring,Logback,Spring Logback,修改回写spring appender导致以下问题。 我只需要将文件格式设置为myapp.txt。更改为myapp.log等格式可以正常工作,但我需要.txt作为文件输出 Caused by: java.lang.IllegalStateException: Logback configuration error detected: ERROR in ch.qos.logback.core.rolling.RollingFileAppender[SAVE-TO-FILE] - 'FileName

修改回写spring appender导致以下问题。 我只需要将文件格式设置为myapp.txt。更改为myapp.log等格式可以正常工作,但我需要.txt作为文件输出

Caused by: java.lang.IllegalStateException: Logback configuration error detected:
ERROR in ch.qos.logback.core.rolling.RollingFileAppender[SAVE-TO-FILE] - 'FileNamePattern' option has the same value "./logs/myapp.txt.%d{yyyy-MM-dd}.%i.gz" as that given for appender [FILE] defined earlier.
ERROR in ch.qos.logback.core.rolling.RollingFileAppender[SAVE-TO-FILE] - Collisions detected with FileAppender/RollingAppender instances defined earlier. Aborting.
ERROR in ch.qos.logback.core.rolling.RollingFileAppender[SAVE-TO-FILE] - For more information, please visit http://logback.qos.ch/codes.html#earlier_fa_collision
我使用的是maven依赖项
ch.qos.logback:logbackclassic:jar:1.2.3