How to programatically access appenders from logback-access config?
<p>I have enabled logback-access log for Tomcat 7.0, using LogbackValve.
My logback-access config looks like this.</p>

<pre><code>&lt;configuration&gt;  
    &lt;appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
    &lt;file&gt;access.log&lt;/file&gt;
    &lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&gt;
      &lt;fileNamePattern&gt;access.%d{yyyy-MM-dd}.log.zip&lt;/fileNamePattern&gt;
    &lt;/rollingPolicy&gt;

    &lt;encoder&gt;
      &lt;pattern&gt;combined&lt;/pattern&gt;
    &lt;/encoder&gt;
  &lt;/appender&gt;

  &lt;appender-ref ref="FILE" /&gt;
&lt;/configuration&gt;
</code></pre>

<p>Now this works perfect and I can see access logs. But in some other code I want to retrieve the appender configured in logback-access.xml programmatically. Is there a way to do it. Since there are no Loggers defined , you cannot use LoggerContext .</p>