You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The definition of the word exceptionless is: to be without exception. Exceptionless.js provides real-time error reporting for your JavaScript applications in the browser or in Node.js. It organizes the gathered information into simple actionable data that will help your app become exceptionless!
You can install Exceptionless.js either in your browser application using Bower or a `script` tag, or you can use the Node Package Manager (npm) to install the Node.js package.
43
44
44
45
#### Browser application
46
+
45
47
Use one of the following methods to install Exceptionless.js into your browser application:
46
48
47
49
-**CDN:**
@@ -64,6 +66,7 @@ Use one of the following methods to install Exceptionless.js into your browser a
64
66
In either case, we recommend placing the `script` tag at the very beginning of your page.
65
67
66
68
#### Node.js
69
+
67
70
Use this method to install Exceptionless.js into your Node application:
68
71
69
72
1. Install the package by running `npm install exceptionless --save`.
@@ -74,10 +77,12 @@ Use this method to install Exceptionless.js into your Node application:
74
77
```
75
78
76
79
### Configuring the client
80
+
77
81
In order to use Exceptionless.js, the `apiKey` setting has to be configured first.
78
82
You can configure the `ExceptionlessClient` class using one of the following ways:
79
83
80
84
#### Browser application
85
+
81
86
- You can configure the `apiKey` as part of the script tag. This will be applied to all new instances of the `ExceptionlessClient` class:
82
87
83
88
```html
@@ -105,6 +110,7 @@ You can configure the `ExceptionlessClient` class using one of the following way
105
110
```
106
111
107
112
#### Node.js
113
+
108
114
- You can set the `apiKey` on the default `ExceptionlessClient` instance:
109
115
110
116
```javascript
@@ -129,6 +135,7 @@ You can configure the `ExceptionlessClient` class using one of the following way
129
135
```
130
136
131
137
### Submitting Events and Errors
138
+
132
139
Once configured, Exceptionless.js will automatically submit any unhandled exceptions that happen in your application to the Exceptionless server. The following sections will show you how to manually submit different event types as well as customize the data that is sent:
client.submitEvent({ message ='Low Fuel', type ='racecar', source ='Fuel System' });
161
168
```
169
+
162
170
#### Manually submitting Errors
163
171
164
172
In addition to automatically sending all unhandled exceptions, you may want to manually send exceptions to the service. You can do so by using code like this:
@@ -215,13 +223,15 @@ try {
215
223
The Exceptionless client can also be configured to send data to your self hosted instance. This is configured by setting the `serverUrl` setting to point to your Exceptionless instance:
216
224
217
225
#### Browser
226
+
218
227
You can set the `serverUrl` on the default `ExceptionlessClient` instance:
2. Install [Node.js](https://nodejs.org). Node is used for building and testing purposes.
254
264
255
265
3. Install [tsd](https://github.com/DefinitelyTyped/tsd) and [gulp](http://gulpjs.com) and the development dependencies using [npm](https://www.npmjs.com).
0 commit comments