Skip to content

docs: add RFC for shared logging facade (@expressjs/log)#509

Open
bjohansebas wants to merge 1 commit into
expressjs:masterfrom
bjohansebas:rfc-log
Open

docs: add RFC for shared logging facade (@expressjs/log)#509
bjohansebas wants to merge 1 commit into
expressjs:masterfrom
bjohansebas:rfc-log

Conversation

@bjohansebas

@bjohansebas bjohansebas commented Jul 16, 2026

Copy link
Copy Markdown
Member

Okay, this is my main idea for keeping logging implementation-agnostic: #459.

The core idea is that it doesn't depend on any logging library. By default, it has no logger configured. If you call .setConsumer(), you provide the logging implementation to use.

If NODE_DEBUG=express is set (see the RFC for the reasoning behind this), it will instead write to stderr using the current debug-style output as a migration path.

The goal is to avoid taking a dependency on any specific logger, at least initially. It also makes the package platform-agnostic, so it could work in browsers as well if needed—for example, if packages like cookie ever wanted to use it in the future.

I'd like to implement this package once we've finalized the design

@bjohansebas
bjohansebas requested a review from a team July 16, 2026 08:13
@bjohansebas bjohansebas added top priority Issues which the TC deem our current highest priorities for the project tc agenda labels Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tc agenda top priority Issues which the TC deem our current highest priorities for the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant