[logback-user] Bug in include tag
Amit A Gadkari
GadkariAmit at JohnDeere.com
Tue Jun 14 08:11:28 CEST 2011
We are having ear project with multiple web modules and ejb module.
Logback is in shared library (websphere shared library which is loaded by
different class loader)
We have logback configuration files for each module.
We have but all common appenders, logger in common included file which is in
Java shared project which is used by all web modules and ejb modules in ear
project.
This included file we are including in logback configuration file for each
module.
Now logback is not able to find this included file.
Reason:
Logback.xml file of each module is loaded by classloader of web module
While loading include file instead of using classloader of web module, it
uses classloader of shared library.
(Logback internally uses class loader of Loader.class)
<include resource="common-configuration.xml" />
I think that this is bug as classloader which loaded logback.xml file of
each module, should be used for loading included file also.
Is there any workaround for this issue?
--
View this message in context: http://old.nabble.com/Bug-in-include-tag-tp31840099p31840099.html
Sent from the Logback User mailing list archive at Nabble.com.
More information about the Logback-user
mailing list