Extract logging to a middleware