Skip to content

Structured log package in node core #49296

@Raynos

Description

@Raynos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    Status

    Triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions