[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [virgo-dev] Including logback.xml in the bundle
- From: Glyn Normington <gnormington@xxxxxxxxxx>
- Date: Thu, 22 Jul 2010 23:23:20 -0700
- Accept-language: en-US
- Acceptlanguage: en-US
- Delivered-to: email@example.com
- Thread-index: AcsqL4uIHg5sQXZnRVyAN7GoSsNAHA==
- Thread-topic: [virgo-dev] Including logback.xml in the bundle
There is support for that built into medic, so perhaps you've found a (basic) bug.
If you want to dig into this, please take a look at the following medic classes.
Reading the config out of a bundle is handled by BundleResourceConfigurationLocator. The different ConfigurationLocators are combined and called in order by CompositeConfigurationLocator which is created in MedicActivator.
On 22 Jul 2010, at 15:35, Dmitry Sklyut wrote:
> Is there support for including logback.xml together with the deployed bundle? All of the things that I tried did not work.
> During 2gx last year Rob and Ben mentioned that it is possible. I am wondering if I am missing some manifest header or some magic pixie dust to get it to work.
> Looking at the medic code I did not see any extender like functionality for look for bundle/logback.xml or bundle/META-INF/logback.xml...
> I have a use case where I would like to re-use logging framework to write out log file into a separate file per instance of Spring Batch job.