logback.xml 的 XML 模式或 DTD? [英] XML schema or DTD for logback.xml?

查看:39
本文介绍了logback.xml 的 XML 模式或 DTD?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网上看到过一些讨论,关于如果有一个 XML 模式或 DTD for logback.xml 文件至少在 IDEA 或 Eclipse 等 IDE 中具有非常基本的验证和自动完成功能,那该有多好,但是我从未见过任何解决方案.

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.

是吗?

推荐答案

官方不支持文档,但是有一个独立的项目来提供Logback的Schema

It is not supported officially according to the documentation, but there is an independent project to provide Schema for Logback

但是,由于 Logback 配置的极大灵活性,Schema 无法支持所有可能的配置选项.

However, due to extreme flexibility of the Logback configuration, Schema cannot support all possible configuration options.

这篇关于logback.xml 的 XML 模式或 DTD?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆