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
3. You can create a new instance of the ExceptionlessClient and specify the `apiKey`, `serverUrl` or [configuration object](https://github.com/exceptionless/Exceptionless.JavaScript/blob/master/src/configuration/IConfigurationSettings.ts).
45
45
```javascript
46
46
var client =newexceptionless.ExceptionlessClient('API_KEY_HERE');
@@ -56,24 +56,24 @@ var client = new exceptionless.ExceptionlessClient({
56
56
57
57
#### Node.js
58
58
1. You can set the `apiKey` on the default ExceptionlessClient instance.
59
-
```javascript
60
-
var client =require('exceptionless.node').ExceptionlessClient.default;
61
-
client.config.apiKey='API_KEY_HERE';
62
-
```
59
+
```javascript
60
+
var client =require('exceptionless.node').ExceptionlessClient.default;
61
+
client.config.apiKey='API_KEY_HERE';
62
+
```
63
63
2. You can create a new instance of the ExceptionlessClient and specify the `apiKey`, `serverUrl` or [configuration object](https://github.com/exceptionless/Exceptionless.JavaScript/blob/master/src/configuration/IConfigurationSettings.ts).
64
-
```javascript
65
-
var exceptionless =require('exceptionless.node');
66
-
67
-
var client =newexceptionless.ExceptionlessClient('API_KEY_HERE');
68
-
// or with a api key and server url.
69
-
var client =newexceptionless.ExceptionlessClient('API_KEY_HERE', 'http://localhost:50000');
70
-
// or with a configuration object
71
-
var client =newexceptionless.ExceptionlessClient({
72
-
apiKey:'API_KEY_HERE',
73
-
serverUrl:'http://localhost:50000',
74
-
submissionBatchSize:100
75
-
});
76
-
```
64
+
```javascript
65
+
var exceptionless =require('exceptionless.node');
66
+
67
+
var client =newexceptionless.ExceptionlessClient('API_KEY_HERE');
68
+
// or with a api key and server url.
69
+
var client =newexceptionless.ExceptionlessClient('API_KEY_HERE', 'http://localhost:50000');
70
+
// or with a configuration object
71
+
var client =newexceptionless.ExceptionlessClient({
72
+
apiKey:'API_KEY_HERE',
73
+
serverUrl:'http://localhost:50000',
74
+
submissionBatchSize:100
75
+
});
76
+
```
77
77
78
78
### Sending Events
79
79
Once configured, Exceptionless will automatically send any unhandled exceptions that happen in your application. The sections below will show you how to send us different event types as well as customize the data that is sent in.
0 commit comments