推荐学习书目
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
wobuaimuzhu
V2EX  ›  Python

有没有用过 senntry 的?如何将日志存放到本地?

  •  
  •   wobuaimuzhu · May 24, 2017 · 1998 views
    This topic created in 3288 days ago, the information mentioned may be changed or developed.

    sentry 是通过 http 传送日志,但是如果网络链接不顺畅,如何将这段时间内产生的日志存放到本地?

    6 replies    2017-05-24 16:17:23 +08:00
    hantsy
        1
    hantsy  
       May 24, 2017
    喜欢折腾就自己架 ELK。
    wobuaimuzhu
        2
    wobuaimuzhu  
    OP
       May 24, 2017
    @hantsy 谢谢,sentry 下有没有解决方案?
    julyclyde
        3
    julyclyde  
       May 24, 2017
    发送端 logger 自己想办法配置,这和 sentry 这个接收端没啥关系
    qiyuey
        4
    qiyuey  
       May 24, 2017
    日志是应用侧负责的,Logger 负则日志接收,同时记录到 Sentry 和文件
    wobuaimuzhu
        5
    wobuaimuzhu  
    OP
       May 24, 2017
    @julyclyde 我用的是 java log4j,是在 log4j 的 properties 里配置吗?
    julyclyde
        6
    julyclyde  
       May 24, 2017
    @wobuaimuzhu 配俩 appender 吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   959 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 55ms · UTC 19:44 · PVG 03:44 · LAX 12:44 · JFK 15:44
    ♥ Do have faith in what you're doing.