code: def should_log(self, request, response):
          
          return self.logging_methods == '__all__' or request.method in self.logging_methods
docs: Method that should return a value that evaluated to True if the request should be logged.
          By default, check if the request method is in logging_methods.