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 (or something) instead of console.log to have more control over logging #17

Open
briangreenery opened this issue Nov 7, 2015 · 1 comment

Comments

@briangreenery
Copy link
Contributor

Using a logging module like debug makes it easier to control when logging messages show up and can add a timestamp to the log messages. This is nice for running tests (since there's not a lot of log output unless you want there to be) and for writing logs to a file (because you can see when things happen).

Maybe you're already using another logging solution and this isn't useful though. I'm not sure what it's like when it's running for reals.

@briangreenery
Copy link
Contributor Author

I'm sure also there are a gazillion other logging modules, I only mention debug because that's the one I'm familiar with and the one that express uses.

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

1 participant