0.0.5 • Published 5 months ago

log-webhook v0.0.5

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

Log Webhook

Use webhooks to send error logs.

Install

npm i log-webhook

Import

  • JavaScript
const LogWebhook = require("log-webhook");
  • TypeScript
import LogWebhook from "log-webhook";

Discord Webhook

Send Error

  • Define the logger
const logger = new LogWebhook("discord", "DISCORD_WEBHOOK_URL");
  • Send error through the logger
try {
    // try something
} catch(err) {
    // send error
    logger.error(err);
}

Send Custom Embeds

  • Documentation coming soon...

Created with 💻 by snehasishcodes

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

6 months ago