Guides / Monitoring
LogIt gives you two ways to alert:
notify: true — fires a push notification immediately for every event. Use for low-volume, high-severity events where every occurrence matters.notify: true| Event | Should notify? |
|---|---|
| First paying customer ever | ✅ Yes — milestone |
| New enterprise signup | ✅ Yes — high value |
| Production deploy completed | ✅ Yes — you want to know |
| Database backup failed | ✅ Yes — critical |
| Any single payment failure | ❌ No — use Smart Actions |
| Each individual 404 error | ❌ No — use Smart Actions |
| Every background job | ❌ No — too noisy |
await logit.now("signups", {
event: "Enterprise signup",
description: `${company} (${email}) just signed up`,
icon: "🏢",
notify: true, // always ping for enterprise
tags: { tier: "enterprise", source: req.body.utmSource },
metadata: { company, email, employees: req.body.employees },
});
// Individual 404s — don't notify on each
await logit.now("errors", {
event: "404 Not Found",
description: req.url,
icon: "⚠️",
notify: false, // Smart Action handles the spike
tags: { path: req.url },
metadata: { ip: req.ip, userAgent: req.headers["user-agent"] },
});
// Smart Action: if 404s > 50 in 5 min → push notification
notify: true for critical, once-in-a-while eventsnotify: false for any event you expect more than 10/day. You can always switch to Smart Actions.Try LogIt free
7-day trial. No credit card required.