Giter Site home page Giter Site logo

vnpy_scripttrader的cli.py文件 中 event_engine 不需要注册 EVENT_LOG的 process_log_event函数 与主引擎重复注册导致LOG输出两遍 about vnpy HOT 1 CLOSED

EzMoney-Sniper avatar EzMoney-Sniper commented on June 16, 2024
vnpy_scripttrader的cli.py文件 中 event_engine 不需要注册 EVENT_LOG的 process_log_event函数 与主引擎重复注册导致LOG输出两遍

from vnpy.

Comments (1)

noranhe avatar noranhe commented on June 16, 2024

init_cli_trading是为了命令行界面使用设计的,所以收到的日志事件都是调用print函数打印输出的。而日志引擎的日志事件收到后是通过logger输出的,如果想用jupyter跑脚本,不想logger输出日志事件信息,把log.active设置为False应该就可以了

from vnpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.