Split the logMiddleware in two middlewares.

accessLogApacheMiddleware and accessLogJsonMiddleware