-
-
Notifications
You must be signed in to change notification settings - Fork 24
Configuration
- Install the package by running
bower install exceptionless
- Add the script to your html page. We recommend placing this as the very first script.
<script src="bower_components/exceptionless/dist/exceptionless.min.js"></script>
- Install the package by running
npm install exceptionless --save-dev
. - Add the Exceptionless client to your app:
var client = require('exceptionless').ExceptionlessClient.default;
NOTE: The only required setting that you need to configure is the client's apiKey
.
1 - Configure the apiKey
as part of the script tag. This will be applied to all new instances of the ExceptionlessClient
<script src="bower_components/exceptionless/dist/exceptionless.min.js?apiKey=API_KEY_HERE"></script>
2 - Set the apiKey
on the default ExceptionlessClient instance.
exceptionless.ExceptionlessClient.default.config.apiKey = 'API_KEY_HERE';
3 - Create a new instance of the ExceptionlessClient and specify the apiKey
, serverUrl
or configuration object.
var client = new exceptionless.ExceptionlessClient('API_KEY_HERE');
// or with a api key and server url.
var client = new exceptionless.ExceptionlessClient('API_KEY_HERE', 'http://localhost:50000');
// or with a configuration object
var client = new exceptionless.ExceptionlessClient({
apiKey: 'API_KEY_HERE',
serverUrl: 'http://localhost:50000',
submissionBatchSize: 100
});
1 - Set the apiKey
on the default ExceptionlessClient instance.
var client = require('exceptionless').ExceptionlessClient.default;
client.config.apiKey = 'API_KEY_HERE';
2 - Create a new instance of the ExceptionlessClient and specify the apiKey
, serverUrl
or configuration object.
var exceptionless = require('exceptionless');
var client = new exceptionless.ExceptionlessClient('API_KEY_HERE');
// or with a api key and server url.
var client = new exceptionless.ExceptionlessClient('API_KEY_HERE', 'http://localhost:50000');
// or with a configuration object
var client = new exceptionless.ExceptionlessClient({
apiKey: 'API_KEY_HERE',
serverUrl: 'http://localhost:50000',
submissionBatchSize: 100
});
Coming soon.
By specifying an application version you can enable additional functionality. It's a good practice to specify an application version if possible using the code below.
exceptionless.ExceptionlessClient.default.config.setVersion("1.2.3");
var exceptionless = require('exceptionless');
exceptionless.ExceptionlessClient.default.config.setVersion("1.2.3");
Looking for General Exceptionless Documentation, UI Documentation, or Documentation for another Client?
Visit the Primary Exceptionless Documentation Page and go from there.