node 3.0.6-alpha.0.6
Install from the command line:
Learn more about npm packages
$ npm install @exceptionless/node@3.0.6-alpha.0.6
Install via package.json:
"@exceptionless/node": "3.0.6-alpha.0.6"
About this version
Using Exceptionless in the NodeJS environment is similar to using it in other JavaScript environments.
To use this package, your must be using ES6 and Node 18+.
npm install @exceptionless/node --save
While your app is starting up, you should call startup
on the Exceptionless
client. This ensures the client is configured and automatic capturing of
unhandled errors occurs.
import { Exceptionless } from "@exceptionless/node";
await Exceptionless.startup(c => {
c.apiKey = "API_KEY_HERE";
// set some default data
c.defaultData["mydata"] = {
myGreeting: "Hello World"
};
c.defaultTags.push("Example", "JavaScript", "Node");
});
Once that's done, you can use the Exceptionless client anywhere in your app by
importing Exceptionless
followed by the method you want to use. For example:
await Exceptionless.submitLog("Hello world!");
Please see the docs for more information on configuring the client.
For improved stack traces launch your Node app with the
--enable-source-maps
command line option.
node app.js --enable-source-maps
If you need help, please contact us via in-app support, open an issue or join our chat on Discord. We’re always here to help if you have any questions!
Details
- node
- exceptionless
- 10 months ago
- Apache-2.0
- 11 dependencies
Assets
- node-3.0.6-alpha.0.6.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0