@ninedevs/bunyan-discord
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

bunyan-discord

This library will send logs to a Discord channel through a webhook.

Getting Started

Install the package;

npm i @ninedevs/bunyan-discord

Usage

const { DiscordStream } = require('@ninedevs/bunyan-discord')
const bunyan = require('bunyan')

const logger = bunyan.createLogger({
    name: 'ExampleApp',
    stream: new DiscordStream({
        webhookUrl: 'https://discord.com/api/webhooks/0123456789'
    })
})

logger.error(new Error('Something failed'))

Package Sidebar

Install

npm i @ninedevs/bunyan-discord

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

21.3 kB

Total Files

11

Last publish

Collaborators

  • iamuzor