Winston Discord Transport
A custom winston transport for Discord.
This library serves as a Transport
for winston, a popular Nodejs logging library.
Features
- Sends complete error stack to discord (see screenshot below)
- Color codes messages based on log level. Errors are red!
- Includes information about host machine to pin point source of message.
- Add any other meta data you want to see in Discord.
Installation
$ npm i winston-discord-transport
Usage
Add as a transport
;; const logger = winston; logger;
Selectively skip a particular message from being sent to Discord
There might be some log messages which you might want to raise to a file or console, but not flood your Discord channel.
For such message, just include discord: false
as a key-value in the log message and the transport will drop the message from being sent to Discord.
logger;