示例#1
0
文件: shepherd.py 项目: qhxin/pixiu
 def __init__(self):
     if type(self).Shepherd_error_log is None:
         type(self).Shepherd_error_log = get_logger(name="syslog")
     self.datasource_home = dirname(__import__("datasource").__file__)
     self.strategy_home = dirname(__import__("strategy").__file__)
     self.datasource = {}
     self.strategy = {}
示例#2
0
 def setlogger(cls):
     if cls.Query_logger is None:
         cls.Query_logger = get_logger("ECTrader")
示例#3
0
 def setlogger(cls):
     if cls.Interface_logger is None:
         cls.Interface_logger = get_logger("ECInterface")
示例#4
0
 def setlogger(cls):
     if cls.Query_logger is None:
         cls.Query_logger = get_logger("ECDataSource")
示例#5
0
 def setlogger(cls):
     if cls.Query_logger is None:
         cls.Query_logger = get_logger("Query")