forked from exceptionless/Exceptionless.JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.component.ts
More file actions
40 lines (35 loc) · 1.03 KB
/
app.component.ts
File metadata and controls
40 lines (35 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { Component, OnInit } from '@angular/core';
import { Exceptionless } from '@exceptionless/browser';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
async ngOnInit() {
await Exceptionless.startup((c) => {
c.useDebugLogger();
c.apiKey = "LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw";
c.serverUrl = "http://localhost:5000";
c.updateSettingsWhenIdleInterval = 15000;
c.usePersistedQueueStorage = true;
c.setUserIdentity("12345678", "Blake");
c.useSessions();
// set some default data
c.defaultData["SampleUser"] = {
id: 1,
name: "Blake",
password: "123456",
passwordResetToken: "a reset token",
myPasswordValue: "123456",
myPassword: "123456",
customValue: "Password",
value: {
Password: "123456",
},
};
c.defaultTags.push("Example", "JavaScript");
});
}
title = 'angular';
}