File indexing completed on 2026-04-19 08:00:01
0001 from pandaharvester.harvestercore import core_utils
0002
0003
0004 class PluginBase(object):
0005 def __init__(self, **kwarg):
0006 for tmpKey, tmpVal in kwarg.items():
0007 setattr(self, tmpKey, tmpVal)
0008
0009
0010 def make_logger(self, base_log, token=None, method_name=None, send_dialog=True):
0011 if send_dialog and hasattr(self, "dbInterface"):
0012 hook = self.dbInterface
0013 else:
0014 hook = None
0015 return core_utils.make_logger(base_log, token=token, method_name=method_name, hook=hook)