logback-access is Servlet API specific. It supports both Jetty and Tomcat.
The start up logic is relatively straightforward and could be adapted to support ratpack.
From a cursory investigation, it looks like IAccessEvent.getRequest is not used at all and IAccessEvent.getResponse is only used by AccessEventDiscriminator.getSessionAttribute to get the a session attribute.
Assuming the getRequest() and getResponse() methods in IAccessEvent are removed with no replacement, I think it would be not too hard to adapt logback-access to ratpack, typically by implementing the IAccessEvent interface in a new class, say RatpackAccessEvent. Would you care to take a shot?
|