forked from exceptionless/Exceptionless.JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
executable file
·22 lines (19 loc) · 735 Bytes
/
app.js
File metadata and controls
executable file
·22 lines (19 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(function () {
'use strict';
var app = angular.module('myApp', [
'exceptionless',
'myApp.view1',
'myApp.view2'
]);
app.config(function(APP_CONSTANTS, $ExceptionlessClient) {
$ExceptionlessClient.config.apiKey = APP_CONSTANTS.EXCEPTIONLESS_API_KEY;
$ExceptionlessClient.config.serverUrl = APP_CONSTANTS.EXCEPTIONLESS_SERVER_URL;
$ExceptionlessClient.config.useDebugLogger();
$ExceptionlessClient.config.setUserIdentity('12345678', 'Blake');
$ExceptionlessClient.config.useSessions();
$ExceptionlessClient.config.defaultTags.push('Example', 'JavaScript', 'Angular');
});
app.run(function ($log) {
$log.info('App starting up...');
});
})();