I want to capture the request and response of the APIs coming to the log handler in MongoDB using Java