I wrote a small library to send Node.js application logs to Discord in a structured format.
Github Project - https://github.com/sidhantpanda/node-discord-logger
- 6 levels of logging
- Send complete error stack to Discord
- Send JSON objects which will be pretty-printed in Discord
- Configure meta data such as machine hostname, process id to be sent with every request