nodejsHow to log errors
Usage example
console.error('oh bad happened')
output
bad happened
More of Nodejs
- How to post url-encoded data
- How to exit process with success
- How to import module
- How to set environment variable
- How to read stream to Buffer
- How to get format date in "yyyy-mm-dd"
- How to set content type in HTTP server
- How to read stream to string
- How to convert JSON to array
- How to run Node.js script in background
See more codes...