Included configurations are partially broken since 1.5.23 (original) (raw)

Hello!

Attached you will find our configuration based on Spring env to choose what appender to use. It worked well until this issue was fixed in 1.5.23.

When we try to run our app with 1.5.23+ we get following errors. Could you please check that, maybe we need to tune our included parts of configuration to work it around. Thanks.

Maybe the reason is that we have two appenders with the same name located in sections and only one of them is going to start based on condition.

17:40:32,720 |-WARN in ch.qos.logback.core.model.processor.AppenderModelHandler - Appender named [CONSOLE] not referenced. Skipping further processing.
17:40:32,720 |-WARN in ch.qos.logback.core.model.processor.AppenderModelHandler - Appender named [FILE] not referenced. Skipping further processing.
17:40:32,720 |-WARN in ch.qos.logback.core.model.processor.conditional.IfModelHandler - The 'condition' attribute in element is deprecated and slated for removal. Use element instead.
17:40:32,720 |-WARN in ch.qos.logback.core.model.processor.conditional.IfModelHandler - See also https://logback.qos.ch/codes.html#conditionAttributeDeprecation
17:40:32,722 |-ERROR in ch.qos.logback.core.model.processor.AppenderRefModelHandler - Failed to find appender named [CONSOLE]
17:40:32,722 |-WARN in ch.qos.logback.core.model.processor.conditional.IfModelHandler - The 'condition' attribute in element is deprecated and slated for removal. Use element instead.
17:40:32,722 |-WARN in ch.qos.logback.core.model.processor.conditional.IfModelHandler - See also https://logback.qos.ch/codes.html#conditionAttributeDeprecation
17:40:32,723 |-ERROR in ch.qos.logback.core.model.processor.AppenderRefModelHandler - Failed to find appender named [FILE]
Logging system failed to initialize using configuration from 'null'
java.lang.IllegalStateException: Logback configuration error detected:
ERROR in ch.qos.logback.core.model.processor.AppenderRefModelHandler - Failed to find appender named [CONSOLE]
ERROR in ch.qos.logback.core.model.processor.AppenderRefModelHandler - Failed to find appender named [FILE]