0.1.5 • Published 10 months ago

pino-discord-webhook v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Pino Discord Webhook Transport

A Pino v7+ transport to send events to Discord

Installation

npm install --save pino-discord-webhook

Usage

You will need to create a webhook on your discord server and copy the URL. It is recommended that you protect this URL like other secrets to avoid your channel being spammed by others.

import pino from 'pino'

const logger = pino({
  transport: {
    target: 'pino-discord-webhook',
    options: {
      webhookURL: 'https://discord.com/api/webhooks/xxxx/xxxx',
    }
  }
})

logger.info('test log!');
0.1.4

11 months ago

0.1.5

10 months ago

0.1.2

12 months ago

0.1.3

12 months ago

0.1.1

1 year ago

0.1.0

1 year ago