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

Reroute logging of an npm package that uses debug to a different logging function #914

Open
TobiasWehrum opened this issue Sep 29, 2022 · 0 comments

Comments

@TobiasWehrum
Copy link

I am using socket.io, which in turn uses debug for its logging needs. While it's nice that that means I can easily turn on/off logging via an environment variable, I am a bit stumped on how to get it to log to anywhere else but console.log. I am describing my use case (and what I tried and failed to do) here: socketio/socket.io#4482

While this might in the end be a problem that has to somehow be solved in the socket.io package, I wanted to ask here too, in case there is any easy way to do this myself from the outside.

@TobiasWehrum TobiasWehrum changed the title Reroute logging from an npm package that uses debug to a different logging function Reroute logging of an npm package that uses debug to a different logging function Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant