示例#1
0
文件: sender.py 项目: subc/anchovy
 def __init__(self, config):
     """
     { 'type': 'syslog',
       'logname': 'logname',
       ... }
     """
     self._output = plugin_manager.get(config['type'])(config)
示例#2
0
 def __init__(self, config):
     """
     { 'type': 'syslog',
       'logname': 'logname',
       ... }
     """
     self._output = plugin_manager.get(config['type'])(config)
示例#3
0
文件: copy.py 项目: subc/anchovy
 def __init__(self, config):
     self._outputs = [plugin_manager.get(cfg['type'])(cfg) for cfg in config['outputs']]
示例#4
0
文件: copy.py 项目: arpsabbir/anchovy
 def __init__(self, config):
     self._outputs = [
         plugin_manager.get(cfg['type'])(cfg) for cfg in config['outputs']
     ]