Created
March 18, 2026 19:19
-
-
Save bithavoc/ab6a2f40224734f0eea070bc730e98ea to your computer and use it in GitHub Desktop.
logging.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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