Skip to content

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

@Jangxh

Description

@Jangxh

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时,日志不能采集,判断日志采集到的标准是在阿里云控制台查看是否收到系统的启动日志。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions