Guides / Monitoring
Discord supports incoming webhooks natively — no bot, no OAuth, no library needed. You post JSON to a URL and a message appears in your channel.
Smart Actions sends a POST request to any webhook URL when a rule fires, so Discord works out of the box.
The URL looks like:
https://discord.com/api/webhooks/1234567890/abcdefghijklmnop
await logit.now("errors", {
event: "Application error",
description: err.message,
icon: "🚨",
notify: false,
tags: { severity: "high" },
metadata: { stack: err.stack },
});
| Field | Value |
|---|---|
| Name | High-severity error → Discord |
| Channel | errors |
| Event name | Application error |
| Threshold | 5 |
| Window | 5 minutes |
| Cooldown | 15 minutes |
| Action | Webhook |
| URL | Your Discord webhook URL |
LogIt will POST to Discord and the message will appear in your channel within seconds of the threshold being crossed.
{
"content": "🔔 **Smart Action triggered**: High-severity error → Discord\n5+ Application error events in the last 5 minutes"
}
Try LogIt free
7-day trial. No credit card required.