Directly adding fields to json log when log has parameterized string
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- python
调研方向
issue 中没有确定文件、测试或入口点。首先定位 logger API 及其对参数化消息和结构化字段的处理方式;当请求的字段可以与格式化消息一起输出,并且测试覆盖示例行为时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
is something like this possible
example:
addItem='abcd'
logger.info(f"added todo item {addItem} to the todo list")
*note: or any way of adding parametrized string
log:
{'name': 'app.routes.controller', 'msg': 'added todo item abcd to the todo list', 'args': (), 'levelname': 'INFO', 'levelno': 20, 'fields': {'addItem': 'abcd'}}
- 主要语言
- Python
- 星标
- 74
- 派生
- 34
- 平均合并
- 1 天 2 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
elastic/ecs-logging-python 的其他 Issue
-
agent-python community triage
难度 2/5 1-3 小时 新手友好度 64/100
elastic/ecs-logging-python#170 ·
-
Exception Group Traceback not fully visible using StdlibFormatter可能已有人在做 @Shubham-Padkonde 于 19 天前认领。 未关闭agent-python community triage
难度 4/5 3-5 天 新手友好度 35/100
elastic/ecs-logging-python#185 · 6 条评论 ·
-
StructlogProcessor fails typechecking可能已有人在做 @AWhetter 于 716 天前认领。 未关闭agent-python community triage
难度 1/5 1 小时以内 新手友好度 35/100
elastic/ecs-logging-python#146 · 2 条评论 ·
-
agent-python community enhancement
难度 4/5 3-5 天 新手友好度 35/100
elastic/ecs-logging-python#73 · 5 条评论 ·
-
agent-python community triage
难度 2/5 1-3 小时 新手友好度 50/100
elastic/ecs-logging-python#72 · 1 个 reaction ·
查看 elastic/ecs-logging-python 的全部 Issue
相似的 Issue
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 78/100
-
python-version
难度 1/5 1 小时以内 新手友好度 88/100
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
bug javascript P2-medium python release:v3.1
难度 2/5 1-3 小时 新手友好度 68/100
adrirubio/claude-deck#546 ·
维护者通常 1 天内回复
-
area: desktop area: website priority: P2 type: feature
难度 2/5 1-3 小时 新手友好度 62/100
appandflow/stim#3411 · 1 条评论 ·
维护者通常 1 天内回复