[logback-dev] [JIRA] Created: (LBCLASSIC-219) support groovy configuration in Context Selectors

Sean McEligot (JIRA) noreply-jira at qos.ch
Fri Aug 13 14:38:17 CEST 2010


support groovy configuration in Context Selectors
-------------------------------------------------

                 Key: LBCLASSIC-219
                 URL: http://jira.qos.ch/browse/LBCLASSIC-219
             Project: logback-classic
          Issue Type: New Feature
          Components: Other
    Affects Versions: 0.9.24
            Reporter: Sean McEligot
            Assignee: Logback dev list
            Priority: Minor


Currently logback context selector only supports Joran (XML) configuration. When a groovy file is given an XML parser exception occurs. If the file ends in .groovy, the configuration should use the groovy interpreter instead of the XML Parser.


INFO   | jvm 1    | 2010/08/12 15:27:56 | 15:27:56,063 |-ERROR in ch.qos.logback.core.joran.event.SaxEventRecorder at 13eaab - Parsing fatal error on line 1 and column 1 

Here's the relevant part of the stack trace. 

org.xml.sax.SAXParseException: Content is not allowed in prolog.
...
INFO   | jvm 1    | 2010/08/12 15:27:56 | 	at 	at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:52)
INFO   | jvm 1    | 2010/08/12 15:27:56 | 	at 	at ch.qos.logback.classic.selector.ContextJNDISelector.configureLoggerContextByURL(ContextJNDISelector.java:161)
INFO   | jvm 1    | 2010/08/12 15:27:56 | 	at 	at ch.qos.logback.classic.selector.ContextJNDISelector.getLoggerContext(ContextJNDISelector.java:105)
INFO   | jvm 1    | 2010/08/12 15:27:56 | 	at 	at org.slf4j.impl.StaticLoggerBinder.getLoggerFactory(StaticLoggerBinder.java:108)
INFO   | jvm 1    | 2010/08/12 15:27:56 | 	at 	at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:273)
INFO   | jvm 1    | 2010/08/12 15:27:56 | 	at 	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list