Log requests and responses.