Hi Ceki,<div><br><div>It does exist <a href="https://github.com/lburgazzoli/Chronicle-Logger/blob/HFT-CLOG-12/logger/src/main/java/net/openhft/chronicle/logger/IndexedLogAppenderConfig.java">https://github.com/lburgazzoli/Chronicle-Logger/blob/HFT-CLOG-12/logger/src/main/java/net/openhft/chronicle/logger/IndexedLogAppenderConfig.java</a> it is not in the same sub-module as logback custom appender as it is shared </div>
<div><br>On Monday, August 25, 2014, ceki <<a href="mailto:ceki@qos.ch">ceki@qos.ch</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Luca,<br>
<br>
The class net.openhft.chronicle.logger.<u></u>IndexedLogAppenderConfig needs to exist. I am mentioning this as I could not find it in the repo you mentioned.<br>
<br>
--<br>
Ceki<br>
<br>
On 25.08.2014 13:11, lb wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The code is hosted in<br>
<a href="https://github.com/lburgazzoli/Chronicle-Logger/tree/HFT-CLOG-12" target="_blank">https://github.com/<u></u>lburgazzoli/Chronicle-Logger/<u></u>tree/HFT-CLOG-12</a> and the<br>
logback configuration is this one:<br>
<a href="https://github.com/lburgazzoli/Chronicle-Logger/blob/HFT-CLOG-12/logger-logback/src/test/resources/logback.xml" target="_blank">https://github.com/<u></u>lburgazzoli/Chronicle-Logger/<u></u>blob/HFT-CLOG-12/logger-<u></u>logback/src/test/resources/<u></u>logback.xml</a><br>

<br>
<br>
The config class has the following property accessors:<br>
<br>
     public void setIndexFileCapacity(int indexFileCapacity) {<br>
         config.indexFileCapacity(<u></u>indexFileCapacity);<br>
     }<br>
<br>
     public int getIndexFileCapacity() {<br>
         return config.indexFileCapacity();<br>
     }<br>
<br>
<br>
And the xml:<br>
<br>
     <appender name  = "CONFIG-INDEXED-CHRONICLE"<br>
               class =<br>
"net.openhft.chronicle.logger.<u></u>logback.<u></u>BinaryIndexedChronicleAppender<u></u>"><br>
<br>
<path>${java.io.tmpdir}/<u></u>chronology-logback/config-<u></u>indexed-chronicle</path><br>
         <formatMessage>false</<u></u>formatMessage><br>
         <includeCallerData>false</<u></u>includeCallerData><br>
<br>
<<u></u>includeMappedDiagnosticContext<u></u>>false</<u></u>includeMappedDiagnosticContext<u></u>><br>
<br>
         <config<br>
class="net.openhft.chronicle.<u></u>logger.<u></u>IndexedLogAppenderConfig"><br>
             <indexFileCapacity>128</<u></u>indexFileCapacity><br>
         </config><br>
<br>
     </appender><br>
<br>
<br>
But I still see the following error:<br>
<br>
13:10:57,943 |-ERROR in ch.qos.logback.core.joran.spi.<u></u>Interpreter@41:32<br>
- no applicable action for [indexFileCapacity], current ElementPath  is<br>
[[configuration][appender][<u></u>config][indexFileCapacity]]<br>
<br>
<br>
<br>
<br>
On Mon, Aug 25, 2014 at 12:56 AM, Tony Trinh <<a>tony19@gmail.com</a><br>
<mailto:<a>tony19@gmail.com</a>>> wrote:<br>
<br>
    Tough to say without seeing your code. See the following working sample:<br>
    <a href="https://github.com/tony19/logback-examples/tree/sandbox/logback/custom-appender" target="_blank">https://github.com/tony19/<u></u>logback-examples/tree/sandbox/<u></u>logback/custom-appender</a><br>
<br>
<br>
<br>
    On Sun, Aug 24, 2014 at 4:23 PM, lb <<a>lburgazzoli@gmail.com</a><br>
    <mailto:<a>lburgazzoli@gmail.com</a>>> wrote:<br>
<br>
        Both are implemented but only setConfig works. If I remove the<br>
        capacity tag the error is not shown.<br>
<br>
<br>
        On Sunday, August 24, 2014, Tony Trinh <<a>tony19@gmail.com</a><br>
        <mailto:<a>tony19@gmail.com</a>>> wrote:<br>
<br>
            Your appender needs to implement setConfig, and your config<br>
            must implement setCapacity.<br>
<br>
<br>
            On Sun, Aug 24, 2014 at 1:24 PM, lb <<a>lburgazzoli@gmail.com</a>><br>
            wrote:<br>
<br>
                Hi, I'm writing a custom appender that has a<br>
                configuration similar to:<br>
<br>
                <appender name  = "myAppender" class = "com.my.Appender"><br>
                     <config class="com.my.Config"><br>
                         <capacity>128</capacity><br>
                     </config><br>
                </appender><br>
<br>
                When I test it, I have the following error:<br>
<br>
                20:19:40,527 |-ERROR in<br>
                ch.qos.logback.core.joran.spi.<u></u>Interpreter@41:32 - no<br>
                applicable action for [capacity], current ElementPath<br>
                  is [[configuration][appender][<u></u>config][capacity]]<br>
<br>
                So config is properly handled whereas nested properties<br>
                are not, how can I enable it?<br>
<br>
                Thank you,<br>
                Luca<br>
<br>
<br>
                ______________________________<u></u>_________________<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/<u></u>listinfo/logback-user</a><br>
<br>
<br>
<br>
        ______________________________<u></u>_________________<br>
        Logback-user mailing list<br>
        <a>Logback-user@qos.ch</a> <mailto:<a>Logback-user@qos.ch</a>><br>
        <a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/<u></u>listinfo/logback-user</a><br>
<br>
<br>
<br>
    ______________________________<u></u>_________________<br>
    Logback-user mailing list<br>
    <a>Logback-user@qos.ch</a> <mailto:<a>Logback-user@qos.ch</a>><br>
    <a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/<u></u>listinfo/logback-user</a><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<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/<u></u>listinfo/logback-user</a><br>
<br>
</blockquote>
<br>
<br>
-- <br>
Ceki<br>
65% of statistics are made up on the spot<br>
______________________________<u></u>_________________<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/<u></u>listinfo/logback-user</a><br>
</blockquote></div></div>