問題描述
我在網上看到過一些討論,關于如果有一個 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?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!