[logback-user] Nested Components in appender definition

lb lburgazzoli at gmail.com
Sun Aug 24 23:23:51 CEST 2014


Both are implemented but only setConfig works. If I remove the capacity tag
the error is not shown.

On Sunday, August 24, 2014, Tony Trinh <tony19 at gmail.com> wrote:

> Your appender needs to implement setConfig, and your config must implement
> setCapacity.
>
>
> On Sun, Aug 24, 2014 at 1:24 PM, lb <lburgazzoli at gmail.com
> <javascript:_e(%7B%7D,'cvml','lburgazzoli at gmail.com');>> wrote:
>
>> Hi, I'm writing a custom appender that has a configuration similar to:
>>
>> <appender name  = "myAppender" class = "com.my.Appender">
>>     <config class="com.my.Config">
>>         <capacity>128</capacity>
>>     </config>
>> </appender>
>>
>> When I test it, I have the following error:
>>
>> 20:19:40,527 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter at 41:32
>> - no applicable action for [capacity], current ElementPath  is
>> [[configuration][appender][config][capacity]]
>>
>> So config is properly handled whereas nested properties are not, how can
>> I enable it?
>>
>> Thank you,
>> Luca
>>
>>
>> _______________________________________________
>> Logback-user mailing list
>> Logback-user at qos.ch <javascript:_e(%7B%7D,'cvml','Logback-user at qos.ch');>
>> http://mailman.qos.ch/mailman/listinfo/logback-user
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20140824/1a30cfb5/attachment.html>


More information about the Logback-user mailing list