[logback-user] LOGback XML configuration schema

David Roussel nabble at diroussel.xsmail.com
Wed Feb 9 13:31:34 CET 2011


Ceki,

I guess your saying it's hard to do and XSD as there is no limit on what elements could exist?

If that is the only problem, then we could have an XSD that knows about all the usual elements, but is not overly restrictive. It can use xsd:any to allow wildcards.  However there are issues even with that. So it'll be interest to see what Grzegorz comes up with. 

David. 

On 2 Feb 2011, at 22:54, Ceki Gülcü <ceki at qos.ch> wrote:

> Hi Grzegorz,
> I think that providing an XML Schema for logback configuration files would be very hard work. If think you are up to the job, please don't let me stop you. :-)
> --
> Ceki
> On 02/02/2011 9:38 PM, Grzegorz Szpetkowski wrote:
>> Could you provide XML Schema (XSD) for XML configuration files ? In
>> Eclipse there is smart code completion for XML files associated with
>> XSD,
>> 
>> I found for Log4j there is DTD:
>> http://wiki.apache.org/logging-log4j/Log4jXmlFormat
>> 
>> I found some discussion here:
>> http://www.mail-archive.com/logback-user@qos.ch/msg00055.html
>> 
>> "There is no DTD to logback configuration files because this is pretty
>> difficult to give a description that is not too strict of the
>> possibilities that the components of logback may offer. "
>> 
>> Actually DTD is very primitive, I think that XSD is much more
>> appreciate way. I prepared XSD for Open Street Map
>> (http://forum.openstreetmap.org/viewtopic.php?id=7186), please let me
>> know if you interested in my any help.
>> 
>> Regards,
>> Grzegorz Szpetkowski
> 
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user


More information about the Logback-user mailing list