def sandesh_logging_params_set_handle_request(self, sandesh_req):
     # Set the logging params
     if sandesh_req.enable is not None:
         if sandesh_req.enable:
             benable = True
         else:
             benable = False
         self._sandesh.set_local_logging(benable)
     if sandesh_req.category is not None:
         self._sandesh.set_logging_category(self.category)
     if sandesh_req.level is not None:
         self._sandesh.set_logging_level(self.level)
     # Return the logging params    
     sandesh_logging_resp = SandeshLoggingParams(enable = self._sandesh.is_local_logging_enabled(),
                                                 category = self._sandesh.logging_category(),
                                                 level = SandeshLevel._VALUES_TO_NAMES[self._sandesh.logging_level()])
     sandesh_logging_resp.response(sandesh_req.context())    
 def sandesh_logging_params_status_handle_request(self, sandesh_req):
     # Return the logging params    
     sandesh_logging_resp = SandeshLoggingParams(enable = self._sandesh.is_local_logging_enabled(),
                                                 category = self._sandesh.logging_category(),
                                                 level = SandeshLevel._VALUES_TO_NAMES[self._sandesh.logging_level()])
     sandesh_logging_resp.response(sandesh_req.context())