On Oct 14, 2011, at 10:43 AM, ceki wrote:

> On 14/10/2011 7:28 PM, David Jencks wrote:
>> It might not fit too well with the felix/karaf idea of installing config
>> admin pid configs through .cfg property files, but config admin has no
>> problem dealing with a string property that is an entire xml document.
>> So I'd go for a handy way to initialize such config admin properties
>> rather than a whole new logback configurator. Maybe some kind of
>> notation like
>> 
>> ..file.key=filelocation
>> 
>> which means the value for key is read from the filelocation.
>> 
>> thanks
>> david jencks
> 
> Once you have the file location, you can invoke a logback
> configurator. Invoking Joran (the XML configurator) is fairly trivial
> and documented at [1]. See also the doConfigure methods in
> GenericConfigurator [2].
> 
> Don't hesitate to ask for help if you decide to go down this road.

What I'm proposing would not involve logback reading a file, but rather config 
admin supplying the xml logback configuration to logback as a single string.

thanks
david jencks

> 
> --
> Ceki
> 
> [1] http://logback.qos.ch/manual/configuration.html#joranDirectly
> [2] 
> http://logback.qos.ch/apidocs/ch/qos/logback/core/joran/GenericConfigurator.html

Reply via email to