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 write file
- How to read stream to string
- How to read stream to Buffer
- How to pipeline streams
- How to POST JSON data
- How to get UTC timestamp
- How to convert unix timestamp to local date/time
- How to log to file
- How to post url-encoded data
See more codes...