You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Proposal: Cross-Runtime Structured Logging API #107
Hello WinterCG community,
I've been working on a structured logging API for Node.js (issue #49296), but discussions with @ovflowd highlighted that this should be a cross-runtime standard rather than Node.js-specific.
Problem
JavaScript runtimes lack a standard logging API. Developers either use console.log() which lacks structure and performance, rely on heavy dependencies like Winston or Pino, or build custom solutions. This fragments the ecosystem and breaks cross-runtime compatibility.
Why WinterCG
As @ovflowd noted, adding Node-specific logging would be disruptive for web codebases and mixed runtime environments. A logging API needs to work consistently across Node.js, Deno, Bun, and Cloudflare Workers without breaking web standards.
Proposal
A minimal structured logging API inspired by Go's slog:
Is this appropriate for WinterCG standardization?
What is the process for proposing new runtime APIs here?
Should this be a new proposal repo or part of proposal-minimum-common-api?
Which runtimes should be involved initially?
Activity