Skip to content
This repository was archived by the owner on Feb 1, 2018. It is now read-only.

use console instead of util #5

Open
tj opened this issue Apr 18, 2014 · 2 comments
Open

use console instead of util #5

tj opened this issue Apr 18, 2014 · 2 comments

Comments

@tj
Copy link

tj commented Apr 18, 2014

breaks with newer nodes

@ekilby
Copy link
Contributor

ekilby commented Apr 22, 2014

Can you point me to a link explaining this? I am seeing util.log as a valid method in the current version v0.10.26 documentation, and the explanations I've seen show it as the preferred way for logging in normal operation, where console.log is better for debugging.

@tj
Copy link
Author

tj commented Apr 22, 2014

hmm for me it breaks in 0.8.x and 0.10.x saying there is no util.warn(), AFAIK those were from before console was even introduced, I can't remember now. They're definitely gone in recent versions http://nodejs.org/api/util.html

I had to do util = console to prevent it from throwing

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

No branches or pull requests

2 participants