推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
kidlfy
V2EX  ›  Python

tornado 产生的日志怎么上传 aliyun 的日志服务?

  •  
  •   kidlfy · Apr 3, 2019 · 2241 views
    This topic created in 2772 days ago, the information mentioned may be changed or developed.

    如题
    请问 tornado 打印的日志怎么才能上传到 aliyun 日志服务? 现在想用的 python sdk 中的 Log Handler 但是 tornado 中不知道怎么用
    求大佬帮助

    BiggerLonger
    BiggerLonger
    Apr 3, 2019❤️1
    1
    logging.getLogger 獲取 tornado 內置的 logger, 然後調用 logger.addHandler 方法
    kidlfy
    kidlfy
    OP
    Apr 3, 2019
    2
    @BiggerLonger get 到了 已经好了 谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5240 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 03:31 · PVG 11:31 · LAX 19:31 · JFK 22:31
    ♥ Do have faith in what you're doing.