This is what I ended up with:

@Singleton
@Provider
public class ServerResponseLoggingFilter implements ContainerResponseFilter
{

    /**
     * Logger.
     */
    //CHECKSTYLE:OFF ConstantName
    private static final Logger log = LoggerFactory.
            getLogger(ServerResponseLoggingFilter.class);
    //CHECKSTYLE:ON ConstantName

   @Override
    public void filter(final ContainerRequestContext requestContext,
            final ContainerResponseContext responseContext) {
        log.debug(String.format("Entity: %s", responseContext.getEntity()));
    }
}



--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/ContainerResponseFilter-for-logging-tp4675772p4675778.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to