Factor out Varnish logging

Change-Id: Ibbc68dc3ca0caddca6d40fe575b7d65467b484fd