V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
SimbaPeng
V2EX  ›  Python

Python 的 logging 库为啥设计成不支持多进程的?

  •  
  •   SimbaPeng · 2018-06-19 15:20:39 +08:00 · 2878 次点击
    这是一个创建于 2131 天前的主题,其中的信息可能已经有所发展或是发生改变。

    而且 django 为何默认使用 logging 记录日志,难道 django 都是部署单进程的吗?

    4 条回复    2018-06-27 15:17:17 +08:00
    reself
        2
    reself  
       2018-06-19 19:51:13 +08:00 via Android
    可以用 logging 接口来自定义 log 服务啊,还可以用队列来异步化。
    aaronzjw
        3
    aaronzjw  
       2018-06-19 20:09:48 +08:00 via iPhone
    可以配置不同得日志文件
    lolizeppelin
        4
    lolizeppelin  
       2018-06-27 15:17:17 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2714 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 14:53 · PVG 22:53 · LAX 07:53 · JFK 10:53
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.