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

Use debug module with stdout/stderr #8

Open
ibc opened this issue Jul 4, 2019 · 1 comment
Open

Use debug module with stdout/stderr #8

ibc opened this issue Jul 4, 2019 · 1 comment

Comments

@ibc
Copy link
Contributor

ibc commented Jul 4, 2019

I always use the Node debug module as follows:

https://github.com/versatica/mediasoup/blob/v3/lib/Logger.js

It provides a constructor to set a sub-namespce (optional) and 3 methods:

  • debug(): prints to stdout.
  • warn(): prints to stderr and adds :WARN: between the "app name" and the sub-namespace.
  • error(): prints to stderr and adds :ERROR: between the "app name" and the sub-namespace.

Interested?

@latysheff
Copy link
Owner

Thanks, will look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants