XML schema or DTD for logback.xml?

Vladislav Rastrusny picture Vladislav Rastrusny · Apr 20, 2011 · Viewed 37.8k times · Source

I've seen several discussions on the net about how great it would be to have an XML schema or DTD for logback.xml file to have at least the very basic validation and auto-completion in IDEs like IDEA or Eclipse, but I never saw any solution.

Did you?

Answer

Eugene Yokota picture Eugene Yokota · Jun 29, 2011

As of June 2011, the official documentation states

As shall become clear, the syntax of logback configuration files is extremely flexible. As such, it is not possible specify the allowed syntax with a DTD file or an XML Schema.

There was a brief thread on the topic, but didn't seem to go anywhere.