nodejsHow to log errors
Usage example
console.error('oh bad happened')
output
bad happened
More of Nodejs
- How to read stream to Buffer
- How to send message to client from websocket server
- How to get UTC timestamp
- How to get post data variables in HTTP server
- How to check if Node.js is installed or not
- How to create SSL websocket server
- How to convert Buffer to JSON object
- How to install Node.js on Ubuntu 22.04
- How to exit process with success
- Websocket server example
See more codes...