Eliot 为复杂的和分布式系统创建日志
Eliot简介
Eliot,Python第三方库,可以为为复杂的和分布式系统创建日志,而且可以了解应用程序中发生了什么以及为什么会发生这种情况,这是一些日志记录无法回答的问题。
Eliot应用实例
import requests
def check_links(urls):
for url in urls:
try:
response = requests.get(url)
response.raise_for_status()
except Exception as e:
raise ValueError(str(e))
try:
check_links(["http://eliot.readthedocs.io", "http://nosuchurl"])
except ValueError:
print("Not all links were valid.")
Eliot Github统计数据
Apache-2.0 license
Github 1.1k stars
Eliot安装命令
pip install eliot eliot-tree requests
Eliot Python版本要求
eliot 1.15.0 Requires Python 3.8+(数据来源pypi)
免责声明:内容编辑自网络,仅供参考,不保证正确性,不作任何决策依据!!以上数据皆截止于博文的写稿日期。