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