0.3.0 • Published 10 months ago

@bachman-dev/pino-discord-transport v0.3.0

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

@bachman-dev/pino-discord-transport

Use this transport with pino to send logs to a Discord webhook

Usage

pnpm install @bachman-dev/pino-discord-transport

In your project:

pino({
  transport: {
    targets: [
      {
        target: "pino/file",
        options: {
          // Write to STDOUT
          destination: 1,
        },
      },
      {
        level: "warn",
        target: "@bachman-dev/pino-discord-transport",
        options: {
          webhookUrl: process.env.DISCORD_WEBHOOK_URL,
          // optionally mention a user in the message
          messageId: process.env.DISCORD_WEBHOOK_MENTION_ID,
        },
      },
    ],
  },
});
0.3.0

10 months ago

0.2.0

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago