IntelliJ Validates logback.xml Incorrectly

Answered

IntelliJ is validating my logback.xml and telling me the level attribute of the root element (<root level="debug">) is not allowed and wants me to use a level element (<level>debug</level> or <level value="debug" />) instead. This has been deprecated in the most recent versions of logback for a while now. The <root level="debug"> is indeed the proper way to specify a level in the logback.xml file. How do I get IntelliJ to use the proper xml schema? I do not see a schema for logback anywhere. Logback's documentation doesn't mention a schema or DTD. I don't see how to turn it off in IntelliJ via the inspection settings.

0
3 comments

Why is this still pending?

0
Could you please share screenshots of the code block and the inspection result? I use <root level="debug"><appender-ref ref="STDOUT" /></root> for test and the inspection didn't prompt suggestions on this.
0

I've done this somewhere else. I'm not sure why there are two places for my issue. Someone from IntelliJ said they have made a formal report or something. They told me to remove the  <DOCTYPE! Configuration> element from the xml and the problem goes away and it did.

0

Please sign in to leave a comment.