@exceptionless/core
TypeScript icon, indicating that this package has built-in type declarations

3.1.0 • Public • Published

Exceptionless Client SDK

This package contains the default implementations that all other JS clients build upon. You can use it directly but we recommend using one of the packages below which automatically wire up to platform specific error handlers and platform specific plugins.

Getting Started

To use this package, your must be using ES6 and support ESM modules.

Installation

npm install @exceptionless/core --save

Configuration

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/core";

await Exceptionless.startup((c) => {
  c.apiKey = "API_KEY_HERE";
  c.setUserIdentity("12345678", "Blake");

  // set some default data
  c.defaultData["mydata"] = {
    myGreeting: "Hello World"
  };

  c.defaultTags.push("Example", "JavaScript");
});

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.

Support

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!

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.1.0
    88
    • latest

Version History

Package Sidebar

Install

npm i @exceptionless/core

Weekly Downloads

158

Version

3.1.0

License

Apache-2.0

Unpacked Size

794 kB

Total Files

223

Last publish

Collaborators

  • exceptionless