nodejsHow to log errors
Usage example
console.error('oh bad happened')
output
bad happened
More of Nodejs
- How to run Node.js script
- How to post url-encoded data
- How to send JSON response from HTTP server
- How to set content type in HTTP server
- How to write file
- How to read stream to string
- How to set environment variable
- How to read stream to Buffer
- How to POST JSON data
- How to log to file
See more codes...