def _init_logger(self, module, logger_class=None, logger_config_file=None): if not module: module = 'sandesh' if logger_class: self._sandesh_logger = (sand_logger.create_logger( module, logger_class, logger_config_file=logger_config_file)) else: self._sandesh_logger = sand_logger.SandeshLogger( module, logger_config_file=logger_config_file) self._logger = self._sandesh_logger.logger()
def _init_logger(self, module, logger_class=None, logger_config_file=None): if not module: module = 'sandesh' if logger_class: self._sandesh_logger = (sand_logger.create_logger( module, logger_class, logger_config_file=logger_config_file)) else: generator = '%s:%s:%s:%s' % (self._source, module, self._node_type, self._instance_id) self._sandesh_logger = sand_logger.SandeshLogger( generator, logger_config_file=logger_config_file) self._logger = self._sandesh_logger.logger()