Dmitry Andrianov created LOGBACK-1486:
-----------------------------------------

             Summary: logback-access should provide async appender
                 Key: LOGBACK-1486
                 URL: https://jira.qos.ch/browse/LOGBACK-1486
             Project: logback
          Issue Type: Improvement
         Environment: Just like logback-classic does for normal logs.

At the first glance the base class (\{\{AsyncAppenderBase}}) looks like it can 
be used with access logs - it is not an abstract one and nothing hints it 
should not. But that class misses a call to event object's 
{{prepareForDeferredProcessing}} method so is not good for Jerry that can 
recycle the requests.

The implementation is straightforward:
{code:java}
import ch.qos.logback.access.spi.IAccessEvent;
                import ch.qos.logback.core.AsyncAppenderBase;
                

                
public class AsyncAccessAppender extends AsyncAppenderBase<IAccessEvent> {
                 @Override
                 protected void preprocess(final IAccessEvent eventObject) {
                 eventObject.prepareForDeferredProcessing();
                 }
                }{code}
 

 
            Reporter: Dmitry Andrianov
            Assignee: Logback dev list






--
This message was sent by Atlassian JIRA
(v7.3.1#73012)
_______________________________________________
logback-dev mailing list
logback-dev@qos.ch
http://mailman.qos.ch/mailman/listinfo/logback-dev

Reply via email to