Add advanced logging to proxy example middleware