Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] child debug instances #399

Closed
thebigredgeek opened this issue Dec 26, 2016 · 2 comments
Closed

[RFC] child debug instances #399

thebigredgeek opened this issue Dec 26, 2016 · 2 comments
Labels
discussion This issue is requesting comments and discussion feature This proposes or provides a feature or enhancement

Comments

@thebigredgeek
Copy link
Contributor

discuss!

const log1 = debug('foo');
log1.use((data, next) => ... ); //apply some new middleware
const log2 = log.child('bar');
// uses middleware of ancestors unless overridden on this instance
log2('hello world'); // => foo:bar hello world
@DiegoRBaquero
Copy link
Contributor

This is a really nice idea

@Qix- Qix- added feature This proposes or provides a feature or enhancement and removed v3 labels Jun 20, 2018
@Qix- Qix- changed the title RFC: 3.0 child debug instances [RFC] child debug instances Jun 20, 2018
@Qix-
Copy link
Member

Qix- commented Dec 19, 2018

Aside from the middleware aspect (#398), this was actually added a while back :)

@Qix- Qix- closed this as completed Dec 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion This issue is requesting comments and discussion feature This proposes or provides a feature or enhancement
Development

No branches or pull requests

10 participants