nodejs / nodejs/node

Structured log package in node core

未关闭
#49,296 67 条评论 25 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

feature request
主要语言
JavaScript
星标
122k
派生
37.4k
平均合并
4 天 3 小时
30 天内合并 PR
272

描述

What is the problem this feature will solve?

To have a structured log package available in stdlib so that all npm modules can log in a single fashion instead of

  • logging to console
  • not logging
  • Having some arbitrary logger interface
  • Emitting random log events
  • Worst case: they literally depend on Winston and it’s 200 transitive dependencies
What is the feature you are proposing to solve the problem?

Implement something like https://go.dev/blog/slog

What alternatives have you considered?

No response

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

该 issue 没有指出任何 Node.js 文件、测试或入口点。首先阅读 proposal 和链接的 Go slog design,然后查看包含 67 条评论的讨论串,以确定已经达成共识的 API 和范围。当 Node.js core project 拥有一份已接受的结构化日志记录 package proposal,以及一条配有匹配测试的实现路径时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, node.js
领域
backend, developer-experience, tooling
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
活跃
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。