请教:
在run.py中加入
from vnpy_ctastrategy.base import EVENT_CTA_LOG
后,再在后面加入log_engine
# main_engine.add_app(PaperAccountApp)
log_engine = main_engine.get_engine("log") #add log to file
event_engine.register(EVENT_CTA_LOG, log_engine.process_log_event) #add log to file
main_window = MainWindow(main_engine, event_engine)
但是在c:/user/admin/.vntrader/log下的文件大小还是一直为0啊,还需要做什么才能写入log文件呢
全局配置中level为50,log.active,log.console和log.file都是默认的true