Skip to content

Commit 3ba498e

Browse files
committed
Update README.md
1 parent 05527c1 commit 3ba498e

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

README.md

+23-23
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ You can configure the exceptionless client a few different ways. The section bel
3434

3535
#### JavaScript
3636
1. You can configure the `apiKey` as part of the script tag. This will be applied to all new instances of the ExceptionlessClient
37-
```html
38-
<script src="bower_components/exceptionless/dist/exceptionless.min.js?apiKey=API_KEY_HERE"></script>
39-
```
37+
```html
38+
<script src="bower_components/exceptionless/dist/exceptionless.min.js?apiKey=API_KEY_HERE"></script>
39+
```
4040
2. You can set the `apiKey` on the default ExceptionlessClient instance.
41-
```javascript
42-
exceptionless.ExceptionlessClient.default.config.apiKey = 'API_KEY_HERE';
43-
```
41+
```javascript
42+
exceptionless.ExceptionlessClient.default.config.apiKey = 'API_KEY_HERE';
43+
```
4444
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).
4545
```javascript
4646
var client = new exceptionless.ExceptionlessClient('API_KEY_HERE');
@@ -56,24 +56,24 @@ var client = new exceptionless.ExceptionlessClient({
5656

5757
#### Node.js
5858
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+
```
6363
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 = new exceptionless.ExceptionlessClient('API_KEY_HERE');
68-
// or with a api key and server url.
69-
var client = new exceptionless.ExceptionlessClient('API_KEY_HERE', 'http://localhost:50000');
70-
// or with a configuration object
71-
var client = new exceptionless.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 = new exceptionless.ExceptionlessClient('API_KEY_HERE');
68+
// or with a api key and server url.
69+
var client = new exceptionless.ExceptionlessClient('API_KEY_HERE', 'http://localhost:50000');
70+
// or with a configuration object
71+
var client = new exceptionless.ExceptionlessClient({
72+
apiKey: 'API_KEY_HERE',
73+
serverUrl: 'http://localhost:50000',
74+
submissionBatchSize: 100
75+
});
76+
```
7777

7878
### Sending Events
7979
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

Comments
 (0)