Log and categorize recurring errors to fix bugs and improve stability.
Ops
Catch known errors

Use Operational to track known errors.
Known errors are not critical errors;eg they won’t stop your server. But logging them can be useful for debugging and taking action on critical issues.
For instance, at Swipekit we run a server to scrape Ads. Scraping is a inheritedly grey area job. So we send a event with notification whenever there’s a known error in the scraping job.
const e = {
name: "a critical event",
avatar: "🤖",
actions : [
{
url : 'https://webhook.site',
buttonText : 'Press me'
}
]
};
Copy