aliyun / aliyun/aliyun-log-python-sdk
uwsgi模式下UwsgiQueuedLogHandler不能采集日志,而QueuedLogHandler可以
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 176
- Forks
- 119
- Avg merge
- 3h 56m
- Merged PRs (30d)
- 2
Description
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时,日志不能采集,判断日志采集到的标准是在阿里云控制台查看是否收到系统的启动日志。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported configuration with Python 3.6.15, uWSGI 2.0.20, uwsgidecorators 1.1.0, and Flask 2.0.2, comparing QueuedLogHandler with UwsgiQueuedLogHandler under dictConfig. Done means the UwsgiQueuedLogHandler setup collects the application's startup logs in the Aliyun Log Service console.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- observability-sre
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100