As of logback version 1.3, nested appenders are not allowed. #604
-
Hi, I'm migrating from 1.2 to 1.4 and I have a https://logback.qos.ch/manual/appenders.html#SiftingAppender Nevertheless I'm getting the warning "As of logback version 1.3, nested appenders are not allowed", which causes Logback to print its full initalization log. Am I missing something? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Sounds like a bug. Can you please create a jira issue for this? |
Beta Was this translation helpful? Give feedback.
-
Created https://jira.qos.ch/browse/LOGBACK-1698. Anyhow here it is the XML definition of the appender(s): <appender name="MY_LOG_APPENDER" class="ch.qos.logback.classic.sift.SiftingAppender">
<!-- Useless but mandatory for SiftingAppender -->
<discriminator>
<key>dummy</key>
<defaultValue>dummy</defaultValue>
</discriminator>
<!-- Avoid creation of unnecessary empty files -->
<sift>
<appender name="MY_LOG_APPENDER_SIFT" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${logs.directory}/mylog.%d.%i.log</fileNamePattern>
<maxFileSize>25MB</maxFileSize>
<maxHistory>30</maxHistory>
<totalSizeCap>250MB</totalSizeCap>
<cleanHistoryOnStart>true</cleanHistoryOnStart>
</rollingPolicy>
<encoder>
<pattern>%d{MMM dd HH:mm:ss} %hostaddr %msg%n</pattern>
</encoder>
</appender>
</sift>
</appender> Thanks. |
Beta Was this translation helpful? Give feedback.
Sounds like a bug. Can you please create a jira issue for this?