qos-ch/logback — pull request #185 by kpavlov (2014-04-03 21:02:12+00:00)
Title: Introduce AsyncAppender for logback-access: LOGBACK-827

Introduced `ch.qos.logback.access.AsyncAppender` which accepts `IAccessEvents`.
Standard AsyncAppender from logback-classic does not support IAccessEvents and fails with exception:
~~~~
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)
~~~~

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

Example `logback-access.xml`:
~~~~~~~xml

${catalina.base}/logs/access.log

${catalina.base}/logs/access.%d{yyyy-MM-dd}.%i.log.tar.gz

100KB

combined

~~~~~~~~