add config to enable log for request and response