logback: no applicable action for [encoder], current ElementPath is [[configuration][appender][encoder]]
<p>I wrote an Appender for logback and save logs into ElasticSearch then add this appender to logback.xml .  I applied it into one application and I got logs from ES.</p>

<p>But when I apply it into another application, logback shows the following error:</p>

<pre><code>16:18:26,040 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [com.dcf.iqunxing.fx.dashcam.agent.log.appender.logback.DashcamAppender]
16:18:26,062 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [dashcamAppender]
16:18:26,078 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@110:12 - no applicable action for [encoder], current ElementPath is [[configuration][appender][encoder]]
16:18:26,080 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@111:13 - no applicable action for [Pattern], current ElementPath is [[configuration][appender][encoder][Pattern]]
</code></pre>

<p>My logback.xml is:</p>

<pre><code>...
&lt;appender name="dashcamAppender"
        class="com.dcf.iqunxing.fx.dashcam.agent.log.appender.logback.DashcamAppender"&gt;
    &lt;encoder&gt;
        &lt;Pattern&gt;.%d{HH:mm:ss.SSS} [%thread] %-5level %logger{35} - %msg %n&lt;/Pattern&gt;
    &lt;/encoder&gt;
    &lt;filter class="ch.qos.logback.classic.filter.LevelFilter"&gt;
        &lt;level&gt;TRACE&lt;/level&gt;
    &lt;/filter&gt;
&lt;/appender&gt;
...
</code></pre>

<p>Lost some action (or how to add them) for logback?</p>