winston-discord-webhook
Version:
Transport for winston to send logs on Discord via Webhook
21 lines (15 loc) • 1.38 kB
Markdown
# Winston Discord Webhook 🍇
<p align="center">
<a href="https://www.npmjs.com/package/winston-discord-webhook"><img src="https://nodei.co/npm/winston-discord-webhook.png?compact=true"></a><br>
<a href="https://ko-fi.com/U7U4AEDXM"><img src = "https://ko-fi.com/img/githubbutton_sm.svg"></a>
</p>

<hr>
### Options
| option | required | type | default | description |
| ----------- | -------- | ------------------------------------------------ | -------- | ----------------------------------------------------- |
| `webhook` | yes | `string` | `null` | The webhook URL given by discord |
| `mode` | no | `hybrid` \| `embed` \| `codeblock` \| `standard` | `hybrid` | determine to format to use |
| `colors` | no | `map<string, hexcolor>` | `none` | determine what colors to use for different log levels |
| `interval` | no | `integer` | `2500` | Time in milliseconds to send log queue to webhook |
| `maxLength` | no | `integer` | `1500` | Maximum length before chopping end off of string |