exceptionless / Exceptionless.JavaScript

Exceptionless JavaScript client
http://exceptionless.com
Apache License 2.0
59 stars 24 forks source link

Testing platform approach #97

Closed ejsmith closed 3 years ago

ejsmith commented 3 years ago

Experimenting with platform approach I was talking about in chat @niemyjski

import { Exceptionless } from "@exceptionless/browser";

Exceptionless.startup({
  apiKey: "mykey"
});

Exceptionless.submitLog("Testing");

The Exceptionless export in each platform package is a pre-configured singleton instance of the client. The startup method is overridden and adds any platform specific things. We may want to publicly export the configured class as well to allow having more than one instance if you don't want to use the singleton instance.

CLAassistant commented 3 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.