def _init_cloudify_logger(self): logger_name = self.task_id if self.task_id is not None \ else 'cloudify_plugin' handler = self._endpoint.get_logging_handler() return init_cloudify_logger(handler, logger_name)
def __init__(self, client, resource_id=None, logger=None): self.logger = logger or init_cloudify_logger(NullHandler(), 'AWSResourceBase') self.client = client self.resource_id = str(resource_id) if resource_id else None
def _init_cloudify_logger(self): logger_name = self.execution_id logging_handler = self.internal.handler.get_context_logging_handler() return init_cloudify_logger(logging_handler, logger_name)
def _init_cloudify_logger(self): logger_name = '{0}-{1}'.format(self.ctx.execution_id, self.id) logging_handler = self.ctx.internal.handler.get_node_logging_handler( self) return init_cloudify_logger(logging_handler, logger_name)
def _init_cloudify_logger(self): logger_name = self.workflow_id if self.workflow_id is not None \ else 'cloudify_workflow' handler = CloudifyWorkflowLoggingHandler(self) return init_cloudify_logger(handler, logger_name)