Add configurable logging middleware to proxy server