3 ms·
Agreed. That's a ridiculous change. A well defined function should have a single purpose, and a reliable and repeatable output.
by CryoLogic 7y ago
Agreed. That's a ridiculous change.
A well defined function should have a single purpose, and a reliable and repeatable output.
- avarun 7y agoIt's a function on `console`. It's meant to be human-readable, not machine-readable.
- sundvor 7y agoConsole logging can be useful for eg being fed into Splunk from an ECS instance. I don't do node.js so perhaps there are other ways of doing that specifically. (Works great in .net core)
- _bxg1 7y agoIt doesn't output back into your code though; it goes directly to stdout, so its main priority is readability for debugging. If you need log-quality output for parsing by another program there are plenty of libraries for getting time in whatever format you wish.