推荐学习书目
› 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 · 2160 views
    This topic created in 2739 days ago, the information mentioned may be changed or developed.

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

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