Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uwsgi模式下UwsgiQueuedLogHandler不能采集日志,而QueuedLogHandler可以 #207

Open
Jangxh opened this issue Jan 5, 2022 · 1 comment

Comments

@Jangxh
Copy link

Jangxh commented Jan 5, 2022

python:3.6.15
uWSGI:2.0.20
uwsgidecorators:1.1.0
flask:2.0.2

日志采用dictConfig进行配置,handler配置如下
handlers:
handler:
class: aliyun.log.UwsgiQueuedLogHandler
end_point: ~
access_key_id: ~
access_key: ~
project: ~
log_store: ~
topic: ~
level: DEBUG
formatter: form1

当使用QueuedLogHandler,并使用uwsgi启动程序时,能够采集到日志,但把class类换成UwsgiQueuedLogHandler时,日志不能采集,判断日志采集到的标准是在阿里云控制台查看是否收到系统的启动日志。

@lialzm
Copy link

lialzm commented Jul 16, 2022

可以试试我的这个pr #216 ,有可能是多进程的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants