qos-ch/logback — pull request #184 by kpavlov (2014-04-02 20:04:20+00:00)
Title: AsyncAppender for logback-access

Proposed fix for http://jira.qos.ch/browse/LOGBACK-827

Async appender is intended to fix issues like that:

18:31:29,255 |-ERROR in ch.qos.logback.classic.AsyncAppender[access.file.async] - Appender [access.file.async] failed to append. java.lang.ClassCastException: ch.qos.logback.access.spi.AccessEvent cannot be cast to ch.qos.logback.classic.spi.ILoggingEvent
at java.lang.ClassCastException: ch.qos.logback.access.spi.AccessEvent cannot be cast to ch.qos.logback.classic.spi.ILoggingEvent
at	at ch.qos.logback.classic.AsyncAppender.preprocess(AsyncAppender.java:28)
at	at ch.qos.logback.core.AsyncAppenderBase.append(AsyncAppenderBase.java:129)
at	at ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:88)
at	at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48)
at	at ch.qos.logback.access.tomcat.LogbackValve.invoke(LogbackValve.java:199)
at	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
at	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at	at java.lang.Thread.run(Thread.java:744)