nodejsHow to log errors
Usage example
console.error('oh bad happened')
output
bad happened
More of Nodejs
- How to set content type in HTTP server
- How to run Node.js script
- How to send JSON response from HTTP server
- How to init Node.js project with NPM
- How to include js file
- How to get hostname
- How to get format date in "yyyy-mm-dd"
- How to write file
- How to convert unix timestamp to local date/time
- How to read stream to Buffer
See more codes...