parameters: (self, msg: str, strategy: StrategyBase = None)
docstring: Create engine log event.
docstring_summary: Create engine log event.
docstring_tokens: Create engine log event .
function: def write_log(self, msg: str, strategy: StrategyBase = None):
          """
          Create engine log event.
          """
          # if strategy:
          #     msg = f"{strategy.strategy_name}: {msg}"
  
          # log = LogData(msg=msg, gateway_name="CtaStrategy")
          # event = Event(type=EVENT_CTA_LOG, data=log)
          # self.event_engine.put(event)
          print(msg)
function_tokens: def write_log ( self , msg : str , strategy : StrategyBase = None ) : # if strategy: #     msg = f"{strategy.strategy_name}: {msg}" # log = LogData(msg=msg, gateway_name="CtaStrategy") # event = Event(type=EVENT_CTA_LOG, data=log) # self.event_engine.put(event) print ( msg )