From 38d10b3b2b377efd3c90a28f0c26f04e0796d429 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Fri, 1 Sep 2017 14:34:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8=E5=87=BD?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/DataRecording/runDataRecording.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/examples/DataRecording/runDataRecording.py b/examples/DataRecording/runDataRecording.py index 43b1674b..21c9b46d 100644 --- a/examples/DataRecording/runDataRecording.py +++ b/examples/DataRecording/runDataRecording.py @@ -9,22 +9,6 @@ from vnpy.trader.vtEvent import EVENT_LOG from vnpy.trader.vtEngine import MainEngine, LogEngine from vnpy.trader.gateway import ctpGateway from vnpy.trader.app import dataRecorder - -#---------------------------------------------------------------------- -def le.info(content): - """输出日志""" - t = datetime.now().strftime('%Y-%m-%d %H:%M:%S') - print '%s\t%s' %(t, content) - -#---------------------------------------------------------------------- -def processLogEvent(event): - """处理日志事件""" - log = event.dict_['data'] - if log.gatewayName: - content = '%s:%s' %(log.gatewayName, log.logContent) - else: - content = '%s:%s' %('MainEngine', log.logContent) - le.info(content) #---------------------------------------------------------------------- def runChildProcess():