def should_log(self, request, response):
should_log_method = super(MockCustomCheckLoggingWithLoggingMethodsView, self).should_log(request, response)<EOL>if not should_log_method:<EOL><INDENT>return False<EOL><DEDENT>return '<STR_LIT>' in response.data<EOL>
Log only if request is in the logging methods and response contains 'log'.