[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [virgo-dev] Including logback.xml in the bundle

Hi Dmitry

I should have mentioned that a user can configure Logback for a given bundle by adding a file called logback.xml (or logback-default.xml) to the root of the bundle.

This function should be exercised by MedicLoggingIntegrationTests. The test naming could be better, but test_bundle_1 and test_bundle_2 both use per-bundle configuration.

Regards,
Glyn
On 23 Jul 2010, at 07:23, Glyn Normington wrote:

> Hi Dmitry
> 
> 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.
> 
> Regards,
> Glyn
> On 22 Jul 2010, at 15:35, Dmitry Sklyut wrote:
> 
>> Hi,
>> 
>> 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.
>> 
>> Regards,
>> 
>> Dmitry
>> <ATT00001..txt>
> 
> _______________________________________________
> virgo-dev mailing list
> virgo-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/virgo-dev