Skip to content

Instantly share code, notes, and snippets.

@bithavoc
Created March 18, 2026 19:19
Show Gist options
  • Select an option

  • Save bithavoc/ab6a2f40224734f0eea070bc730e98ea to your computer and use it in GitHub Desktop.

Select an option

Save bithavoc/ab6a2f40224734f0eea070bc730e98ea to your computer and use it in GitHub Desktop.
logging.js
// Importing required modules
import logging from 'logging-sdk';
import eventstore from 'events-sdk';
import slackchat from 'slack-sdk';
function reportError(err: Error) {
logging.reportError(err);
eventstore.reportError(err);
slackchat.reportError(err);
}
function main() {
reportError(new Error("some error"));
}
// Execute main function
main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment