コード例 #1
0
 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)
コード例 #2
0
 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)
コード例 #3
0
 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
コード例 #4
0
 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
コード例 #5
0
 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)
コード例 #6
0
 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)
コード例 #7
0
 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)
コード例 #8
0
 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)
コード例 #9
0
 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)