<div dir="ltr"><div>Tough to say without seeing your code. See the following working sample:</div><div><a href="https://github.com/tony19/logback-examples/tree/sandbox/logback/custom-appender">https://github.com/tony19/logback-examples/tree/sandbox/logback/custom-appender</a><br>

</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 24, 2014 at 4:23 PM, lb <span dir="ltr"><<a href="mailto:lburgazzoli@gmail.com" target="_blank">lburgazzoli@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Both are implemented but only setConfig works. If I remove the capacity tag the error is not shown.<div class="HOEnZb">

<div class="h5"><span></span><br><br>On Sunday, August 24, 2014, Tony Trinh <<a href="mailto:tony19@gmail.com" target="_blank">tony19@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Your appender needs to implement setConfig, and your config must implement setCapacity.</div><div class="gmail_extra">


<br><br><div class="gmail_quote">On Sun, Aug 24, 2014 at 1:24 PM, lb <span dir="ltr"><<a>lburgazzoli@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi, I'm writing a custom appender that has a configuration similar to:</div><div><br></div><div>




<appender name  = "myAppender" class = "com.my.Appender"></div><div>    <config class="com.my.Config"></div>
<div>        <capacity>128</capacity></div><div>    </config></div><div></appender><br></div><div><br></div><div>When I test it, I have the following error:</div><div><br></div><div><div>20:19:40,527 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@41:32 - no applicable action for [capacity], current ElementPath  is [[configuration][appender][config][capacity]]</div>





</div><div><br></div><div>So config is properly handled whereas nested properties are not, how can I enable it?</div><div><br></div><div>Thank you,</div><div>Luca</div><div><br></div></div>
<br>_______________________________________________<br>
Logback-user mailing list<br>
<a>Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br></blockquote></div><br></div>
</blockquote>
</div></div><br>_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br></blockquote></div><br></div>