ionic-logging-viewer 10.0.0 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -6
- package/esm2020/ionic-logging-viewer.mjs +5 -0
- package/esm2020/lib/logging-viewer/logging-viewer.component.mjs +119 -0
- package/esm2020/lib/logging-viewer-filter.service.mjs +64 -0
- package/esm2020/lib/logging-viewer-levels/logging-viewer-levels.component.mjs +71 -0
- package/esm2020/lib/logging-viewer-modal/logging-viewer-modal-properties.model.mjs +2 -0
- package/esm2020/lib/logging-viewer-modal/logging-viewer-modal.component.mjs +141 -0
- package/esm2020/lib/logging-viewer-search/logging-viewer-search.component.mjs +73 -0
- package/esm2020/lib/logging-viewer-translation.model.mjs +2 -0
- package/esm2020/lib/logging-viewer.module.mjs +55 -0
- package/esm2020/public_api.mjs +11 -0
- package/fesm2015/ionic-logging-viewer.mjs +500 -0
- package/fesm2015/ionic-logging-viewer.mjs.map +1 -0
- package/fesm2020/ionic-logging-viewer.mjs +495 -0
- package/fesm2020/ionic-logging-viewer.mjs.map +1 -0
- package/ionic-logging-viewer.d.ts +1 -1
- package/lib/logging-viewer/logging-viewer.component.d.ts +3 -0
- package/lib/logging-viewer-filter.service.d.ts +8 -0
- package/lib/logging-viewer-levels/logging-viewer-levels.component.d.ts +3 -0
- package/lib/logging-viewer-modal/logging-viewer-modal.component.d.ts +3 -0
- package/lib/logging-viewer-search/logging-viewer-search.component.d.ts +3 -0
- package/lib/logging-viewer.module.d.ts +11 -0
- package/package.json +28 -16
- package/bundles/ionic-logging-viewer.umd.js +0 -782
- package/bundles/ionic-logging-viewer.umd.js.map +0 -1
- package/bundles/ionic-logging-viewer.umd.min.js +0 -16
- package/bundles/ionic-logging-viewer.umd.min.js.map +0 -1
- package/esm2015/ionic-logging-viewer.js +0 -6
- package/esm2015/lib/logging-viewer/logging-viewer.component.js +0 -127
- package/esm2015/lib/logging-viewer-filter.service.js +0 -60
- package/esm2015/lib/logging-viewer-levels/logging-viewer-levels.component.js +0 -74
- package/esm2015/lib/logging-viewer-modal/logging-viewer-modal-properties.model.js +0 -1
- package/esm2015/lib/logging-viewer-modal/logging-viewer-modal.component.js +0 -158
- package/esm2015/lib/logging-viewer-search/logging-viewer-search.component.js +0 -79
- package/esm2015/lib/logging-viewer-translation.model.js +0 -1
- package/esm2015/lib/logging-viewer.module.js +0 -39
- package/esm2015/public_api.js +0 -9
- package/esm5/ionic-logging-viewer.js +0 -6
- package/esm5/lib/logging-viewer/logging-viewer.component.js +0 -144
- package/esm5/lib/logging-viewer-filter.service.js +0 -69
- package/esm5/lib/logging-viewer-levels/logging-viewer-levels.component.js +0 -76
- package/esm5/lib/logging-viewer-modal/logging-viewer-modal-properties.model.js +0 -1
- package/esm5/lib/logging-viewer-modal/logging-viewer-modal.component.js +0 -191
- package/esm5/lib/logging-viewer-search/logging-viewer-search.component.js +0 -81
- package/esm5/lib/logging-viewer-translation.model.js +0 -1
- package/esm5/lib/logging-viewer.module.js +0 -42
- package/esm5/public_api.js +0 -9
- package/fesm2015/ionic-logging-viewer.js +0 -519
- package/fesm2015/ionic-logging-viewer.js.map +0 -1
- package/fesm5/ionic-logging-viewer.js +0 -585
- package/fesm5/ionic-logging-viewer.js.map +0 -1
- package/ionic-logging-viewer.metadata.json +0 -1
|
@@ -1,585 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata, __awaiter, __generator, __values } from 'tslib';
|
|
2
|
-
import { EventEmitter, Injectable, Input, Component, NgModule } from '@angular/core';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { FormsModule } from '@angular/forms';
|
|
5
|
-
import { Platform, AlertController, ModalController, IonicModule } from '@ionic/angular';
|
|
6
|
-
import { LoggingService, LogLevelConverter } from 'ionic-logging-service';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Service for storing filter settings for logging viewer.
|
|
10
|
-
*/
|
|
11
|
-
var LoggingViewerFilterService = /** @class */ (function () {
|
|
12
|
-
/**
|
|
13
|
-
* Creates a new instance of the service.
|
|
14
|
-
* @param loggingService needed for internal logging.
|
|
15
|
-
*/
|
|
16
|
-
function LoggingViewerFilterService(loggingService) {
|
|
17
|
-
this.logger = loggingService.getLogger("Ionic.Logging.Viewer.Filter.Service");
|
|
18
|
-
var methodName = "ctor";
|
|
19
|
-
this.logger.entry(methodName);
|
|
20
|
-
this.levelValue = "DEBUG";
|
|
21
|
-
this.searchValue = "";
|
|
22
|
-
this.filterChanged = new EventEmitter();
|
|
23
|
-
this.logger.exit(methodName);
|
|
24
|
-
}
|
|
25
|
-
Object.defineProperty(LoggingViewerFilterService.prototype, "level", {
|
|
26
|
-
/**
|
|
27
|
-
* Gets the current log level.
|
|
28
|
-
* @return log level
|
|
29
|
-
*/
|
|
30
|
-
get: function () {
|
|
31
|
-
return this.levelValue;
|
|
32
|
-
},
|
|
33
|
-
/**
|
|
34
|
-
* Sets the new log level and emits a filterChanged event.
|
|
35
|
-
* @param value new slog level
|
|
36
|
-
*/
|
|
37
|
-
set: function (value) {
|
|
38
|
-
this.levelValue = value;
|
|
39
|
-
this.filterChanged.emit();
|
|
40
|
-
},
|
|
41
|
-
enumerable: true,
|
|
42
|
-
configurable: true
|
|
43
|
-
});
|
|
44
|
-
Object.defineProperty(LoggingViewerFilterService.prototype, "search", {
|
|
45
|
-
/**
|
|
46
|
-
* Gets the current search value.
|
|
47
|
-
* @return search value
|
|
48
|
-
*/
|
|
49
|
-
get: function () {
|
|
50
|
-
return this.searchValue;
|
|
51
|
-
},
|
|
52
|
-
/**
|
|
53
|
-
* Sets the new search value and emits a filterChanged event.
|
|
54
|
-
* @param value new search value
|
|
55
|
-
*/
|
|
56
|
-
set: function (value) {
|
|
57
|
-
this.searchValue = value;
|
|
58
|
-
this.filterChanged.emit();
|
|
59
|
-
},
|
|
60
|
-
enumerable: true,
|
|
61
|
-
configurable: true
|
|
62
|
-
});
|
|
63
|
-
LoggingViewerFilterService.ctorParameters = function () { return [
|
|
64
|
-
{ type: LoggingService }
|
|
65
|
-
]; };
|
|
66
|
-
LoggingViewerFilterService = __decorate([
|
|
67
|
-
Injectable(),
|
|
68
|
-
__metadata("design:paramtypes", [LoggingService])
|
|
69
|
-
], LoggingViewerFilterService);
|
|
70
|
-
return LoggingViewerFilterService;
|
|
71
|
-
}());
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Component for displaying the current logs.
|
|
75
|
-
*
|
|
76
|
-
* The component can be embedded in any web page using:
|
|
77
|
-
*
|
|
78
|
-
* <ionic-logging-viewer></ionic-logging-viewer>
|
|
79
|
-
*/
|
|
80
|
-
var LoggingViewerComponent = /** @class */ (function () {
|
|
81
|
-
/**
|
|
82
|
-
* Creates a new instance of the component.
|
|
83
|
-
*/
|
|
84
|
-
function LoggingViewerComponent(loggingService, loggingViewerFilterService) {
|
|
85
|
-
this.loggingService = loggingService;
|
|
86
|
-
this.loggingViewerFilterService = loggingViewerFilterService;
|
|
87
|
-
this.logger = loggingService.getLogger("Ionic.Logging.Viewer.Component");
|
|
88
|
-
var methodName = "ctor";
|
|
89
|
-
this.logger.entry(methodName);
|
|
90
|
-
this.logger.exit(methodName);
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Initialize the component.
|
|
94
|
-
*
|
|
95
|
-
* This is done by reading the filter data from [LoggingViewerFilterService](LoggingViewerFilterService.html)
|
|
96
|
-
* and the log messages from [LoggingService](../../../ionic-logging-service/typedoc/index.html).
|
|
97
|
-
* If the localStorageKeys property is set, the messages are read from local storage.
|
|
98
|
-
*/
|
|
99
|
-
LoggingViewerComponent.prototype.ngOnInit = function () {
|
|
100
|
-
var _this = this;
|
|
101
|
-
var methodName = "ngOnInit";
|
|
102
|
-
this.logger.entry(methodName);
|
|
103
|
-
this.loadLogMessages();
|
|
104
|
-
this.filterLogMessages();
|
|
105
|
-
// subscribe to loggingService.logMessagesChanged event, to refresh, when new message is logged
|
|
106
|
-
this.logMessagesChangedSubscription = this.loggingService.logMessagesChanged.subscribe(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
107
|
-
return __generator(this, function (_a) {
|
|
108
|
-
this.loadLogMessages();
|
|
109
|
-
this.filterLogMessages();
|
|
110
|
-
return [2 /*return*/];
|
|
111
|
-
});
|
|
112
|
-
}); });
|
|
113
|
-
// subscribe to loggingViewerFilterService.filterChanged event, to refresh, when filter is modified
|
|
114
|
-
this.filterChangedSubscription = this.loggingViewerFilterService.filterChanged.subscribe(function () {
|
|
115
|
-
_this.filterLogMessages();
|
|
116
|
-
});
|
|
117
|
-
this.logger.exit(methodName);
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* Clean up.
|
|
121
|
-
*/
|
|
122
|
-
LoggingViewerComponent.prototype.ngOnDestroy = function () {
|
|
123
|
-
var methodName = "ngOnDestroy";
|
|
124
|
-
this.logger.entry(methodName);
|
|
125
|
-
this.logMessagesChangedSubscription.unsubscribe();
|
|
126
|
-
this.filterChangedSubscription.unsubscribe();
|
|
127
|
-
this.logger.exit(methodName);
|
|
128
|
-
};
|
|
129
|
-
/**
|
|
130
|
-
* Filter the log messages.
|
|
131
|
-
*/
|
|
132
|
-
LoggingViewerComponent.prototype.filterLogMessages = function () {
|
|
133
|
-
var _this = this;
|
|
134
|
-
this.logMessagesForDisplay = this.logMessages.filter(function (message) {
|
|
135
|
-
return _this.filterLogMessagesByLevel(message) && _this.filterLogMessagesBySearch(message);
|
|
136
|
-
});
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* Check if the log message's level fulfills the level condition.
|
|
140
|
-
*
|
|
141
|
-
* @param message the log message to check
|
|
142
|
-
* @returns true if check was successful
|
|
143
|
-
*/
|
|
144
|
-
LoggingViewerComponent.prototype.filterLogMessagesByLevel = function (message) {
|
|
145
|
-
var levelValue = this.loggingViewerFilterService.level;
|
|
146
|
-
return LogLevelConverter.levelFromString(message.level) >= LogLevelConverter.levelFromString(levelValue);
|
|
147
|
-
};
|
|
148
|
-
/**
|
|
149
|
-
* Check if the log message fulfills the search condition.
|
|
150
|
-
*
|
|
151
|
-
* The search value gets searched in:
|
|
152
|
-
* - logger name
|
|
153
|
-
* - method name
|
|
154
|
-
* - message
|
|
155
|
-
*
|
|
156
|
-
* @param message the log message to check
|
|
157
|
-
* @returns true if check was successful
|
|
158
|
-
*/
|
|
159
|
-
LoggingViewerComponent.prototype.filterLogMessagesBySearch = function (message) {
|
|
160
|
-
var searchValue = new RegExp(this.loggingViewerFilterService.search, "i");
|
|
161
|
-
return message.logger.search(searchValue) >= 0 ||
|
|
162
|
-
message.methodName.search(searchValue) >= 0 ||
|
|
163
|
-
message.message.join("|").search(searchValue) >= 0;
|
|
164
|
-
};
|
|
165
|
-
/**
|
|
166
|
-
* Load the current log messages.
|
|
167
|
-
* For unit test purposes mainly.
|
|
168
|
-
*/
|
|
169
|
-
LoggingViewerComponent.prototype.loadLogMessages = function () {
|
|
170
|
-
var e_1, _a;
|
|
171
|
-
if (this.localStorageKeys) {
|
|
172
|
-
this.logMessages = [];
|
|
173
|
-
try {
|
|
174
|
-
for (var _b = __values(this.localStorageKeys.split(",")), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
175
|
-
var localStorageKey = _c.value;
|
|
176
|
-
this.logMessages = this.logMessages.concat(this.loggingService.getLogMessagesFromLocalStorage(localStorageKey));
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
180
|
-
finally {
|
|
181
|
-
try {
|
|
182
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
183
|
-
}
|
|
184
|
-
finally { if (e_1) throw e_1.error; }
|
|
185
|
-
}
|
|
186
|
-
this.logMessages = this.logMessages.sort(function (a, b) { return a.timeStamp.getTime() - b.timeStamp.getTime(); });
|
|
187
|
-
}
|
|
188
|
-
else {
|
|
189
|
-
this.logMessages = this.loggingService.getLogMessages();
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
LoggingViewerComponent.ctorParameters = function () { return [
|
|
193
|
-
{ type: LoggingService },
|
|
194
|
-
{ type: LoggingViewerFilterService }
|
|
195
|
-
]; };
|
|
196
|
-
__decorate([
|
|
197
|
-
Input(),
|
|
198
|
-
__metadata("design:type", String)
|
|
199
|
-
], LoggingViewerComponent.prototype, "localStorageKeys", void 0);
|
|
200
|
-
LoggingViewerComponent = __decorate([
|
|
201
|
-
Component({
|
|
202
|
-
selector: "ionic-logging-viewer",
|
|
203
|
-
template: "<ion-list>\n\t<ion-item *ngFor=\"let logMessage of logMessagesForDisplay\">\n\t\t<ion-label>\n\t\t\t<p>{{ logMessage.timeStamp | date:'dd.MM.yyyy HH:mm:ss' }} {{ logMessage.level }}</p>\n\t\t\t<p>{{ logMessage.logger }}</p>\n\t\t\t<p>\n\t\t\t\t{{ logMessage.methodName }}\n\t\t\t\t<span *ngFor=\"let messagePart of logMessage.message\"> {{ messagePart }} </span>\n\t\t\t</p>\n\t\t</ion-label>\n\t</ion-item>\n</ion-list>",
|
|
204
|
-
styles: [""]
|
|
205
|
-
}),
|
|
206
|
-
__metadata("design:paramtypes", [LoggingService,
|
|
207
|
-
LoggingViewerFilterService])
|
|
208
|
-
], LoggingViewerComponent);
|
|
209
|
-
return LoggingViewerComponent;
|
|
210
|
-
}());
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* Component for displaying the log levels for filtering the current logs.
|
|
214
|
-
*
|
|
215
|
-
* The component can be embedded in any web page using:
|
|
216
|
-
*
|
|
217
|
-
* <ionic-logging-viewer-levels></ionic-logging-viewer-levels>
|
|
218
|
-
*/
|
|
219
|
-
var LoggingViewerLevelsComponent = /** @class */ (function () {
|
|
220
|
-
/**
|
|
221
|
-
* Creates a new instance of the component.
|
|
222
|
-
*/
|
|
223
|
-
function LoggingViewerLevelsComponent(loggingService, loggingViewerFilterService) {
|
|
224
|
-
this.loggingViewerFilterService = loggingViewerFilterService;
|
|
225
|
-
this.logger = loggingService.getLogger("Ionic.Logging.Viewer.Levels.Component");
|
|
226
|
-
var methodName = "ctor";
|
|
227
|
-
this.logger.entry(methodName);
|
|
228
|
-
this.logLevels = [];
|
|
229
|
-
this.logLevels.push("DEBUG", "INFO", "WARN", "ERROR");
|
|
230
|
-
this.logger.exit(methodName);
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* Initialize the component.
|
|
234
|
-
*
|
|
235
|
-
* This is done by reading the filter data from [LoggingViewerFilterService](LoggingViewerFilterService.html).
|
|
236
|
-
*/
|
|
237
|
-
LoggingViewerLevelsComponent.prototype.ngOnInit = function () {
|
|
238
|
-
var _this = this;
|
|
239
|
-
var methodName = "ngOnInit";
|
|
240
|
-
this.logger.entry(methodName);
|
|
241
|
-
this.selectedLevel = this.loggingViewerFilterService.level;
|
|
242
|
-
// subscribe to loggingViewerFilterService.filterChanged event, to refresh,
|
|
243
|
-
// when someone else modifies the level
|
|
244
|
-
this.filterChangedSubscription = this.loggingViewerFilterService.filterChanged.subscribe(function () {
|
|
245
|
-
_this.selectedLevel = _this.loggingViewerFilterService.level;
|
|
246
|
-
});
|
|
247
|
-
this.logger.exit(methodName);
|
|
248
|
-
};
|
|
249
|
-
/**
|
|
250
|
-
* Clean up.
|
|
251
|
-
*/
|
|
252
|
-
LoggingViewerLevelsComponent.prototype.ngOnDestroy = function () {
|
|
253
|
-
var methodName = "ngOnDestroy";
|
|
254
|
-
this.logger.entry(methodName);
|
|
255
|
-
this.filterChangedSubscription.unsubscribe();
|
|
256
|
-
this.logger.exit(methodName);
|
|
257
|
-
};
|
|
258
|
-
/**
|
|
259
|
-
* Callback when the level was changed in the UI.
|
|
260
|
-
*/
|
|
261
|
-
LoggingViewerLevelsComponent.prototype.onLevelChanged = function () {
|
|
262
|
-
var methodName = "onLevelChanged";
|
|
263
|
-
this.logger.entry(methodName, this.selectedLevel);
|
|
264
|
-
this.loggingViewerFilterService.level = this.selectedLevel;
|
|
265
|
-
this.logger.exit(methodName);
|
|
266
|
-
};
|
|
267
|
-
LoggingViewerLevelsComponent.ctorParameters = function () { return [
|
|
268
|
-
{ type: LoggingService },
|
|
269
|
-
{ type: LoggingViewerFilterService }
|
|
270
|
-
]; };
|
|
271
|
-
LoggingViewerLevelsComponent = __decorate([
|
|
272
|
-
Component({
|
|
273
|
-
selector: "ionic-logging-viewer-levels",
|
|
274
|
-
template: "<ion-segment [(ngModel)]=\"selectedLevel\" (ionChange)=\"onLevelChanged()\">\n\t<ion-segment-button *ngFor=\"let logLevel of logLevels\" [value]=\"logLevel\">\n\t\t<ion-label>{{ logLevel }}</ion-label>\n\t</ion-segment-button>\n</ion-segment>",
|
|
275
|
-
styles: [""]
|
|
276
|
-
}),
|
|
277
|
-
__metadata("design:paramtypes", [LoggingService,
|
|
278
|
-
LoggingViewerFilterService])
|
|
279
|
-
], LoggingViewerLevelsComponent);
|
|
280
|
-
return LoggingViewerLevelsComponent;
|
|
281
|
-
}());
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* Component for displaying the search bar for filtering the current logs.
|
|
285
|
-
*
|
|
286
|
-
* The component can be embedded in any web page using:
|
|
287
|
-
*
|
|
288
|
-
* <ionic-logging-viewer-search placeholder="Search"></ionic-logging-viewer-search>
|
|
289
|
-
*/
|
|
290
|
-
var LoggingViewerSearchComponent = /** @class */ (function () {
|
|
291
|
-
/**
|
|
292
|
-
* Creates a new instance of the component.
|
|
293
|
-
*/
|
|
294
|
-
function LoggingViewerSearchComponent(loggingService, loggingViewerFilterService) {
|
|
295
|
-
this.loggingViewerFilterService = loggingViewerFilterService;
|
|
296
|
-
this.logger = loggingService.getLogger("Ionic.Logging.Viewer.Search.Component");
|
|
297
|
-
var methodName = "ctor";
|
|
298
|
-
this.logger.entry(methodName);
|
|
299
|
-
this.logger.exit(methodName);
|
|
300
|
-
}
|
|
301
|
-
/**
|
|
302
|
-
* Initialize the component.
|
|
303
|
-
*
|
|
304
|
-
* This is done by reading the filter data from [LoggingViewerFilterService](LoggingViewerFilterService.html).
|
|
305
|
-
*/
|
|
306
|
-
LoggingViewerSearchComponent.prototype.ngOnInit = function () {
|
|
307
|
-
var _this = this;
|
|
308
|
-
var methodName = "ngOnInit";
|
|
309
|
-
this.logger.entry(methodName);
|
|
310
|
-
if (!this.placeholder) {
|
|
311
|
-
this.placeholder = "Search";
|
|
312
|
-
}
|
|
313
|
-
this.search = this.loggingViewerFilterService.search;
|
|
314
|
-
// subscribe to loggingViewerFilterService.filterChanged event, to refresh,
|
|
315
|
-
// when someone else modifies the search value
|
|
316
|
-
this.filterChangedSubscription = this.loggingViewerFilterService.filterChanged.subscribe(function () {
|
|
317
|
-
_this.search = _this.loggingViewerFilterService.search;
|
|
318
|
-
});
|
|
319
|
-
this.logger.exit(methodName);
|
|
320
|
-
};
|
|
321
|
-
/**
|
|
322
|
-
* Clean up.
|
|
323
|
-
*/
|
|
324
|
-
LoggingViewerSearchComponent.prototype.ngOnDestroy = function () {
|
|
325
|
-
var methodName = "ngOnDestroy";
|
|
326
|
-
this.logger.entry(methodName);
|
|
327
|
-
this.filterChangedSubscription.unsubscribe();
|
|
328
|
-
this.logger.exit(methodName);
|
|
329
|
-
};
|
|
330
|
-
/**
|
|
331
|
-
* Callback when the search value was changed in the UI.
|
|
332
|
-
*/
|
|
333
|
-
LoggingViewerSearchComponent.prototype.onSearchChanged = function () {
|
|
334
|
-
var methodName = "onSearchChanged";
|
|
335
|
-
this.logger.entry(methodName, this.search);
|
|
336
|
-
this.loggingViewerFilterService.search = this.search;
|
|
337
|
-
this.logger.exit(methodName);
|
|
338
|
-
};
|
|
339
|
-
LoggingViewerSearchComponent.ctorParameters = function () { return [
|
|
340
|
-
{ type: LoggingService },
|
|
341
|
-
{ type: LoggingViewerFilterService }
|
|
342
|
-
]; };
|
|
343
|
-
__decorate([
|
|
344
|
-
Input(),
|
|
345
|
-
__metadata("design:type", String)
|
|
346
|
-
], LoggingViewerSearchComponent.prototype, "placeholder", void 0);
|
|
347
|
-
LoggingViewerSearchComponent = __decorate([
|
|
348
|
-
Component({
|
|
349
|
-
selector: "ionic-logging-viewer-search",
|
|
350
|
-
template: "<ion-searchbar placeholder=\"{{placeholder}}\" [(ngModel)]=\"search\" (ionChange)=\"onSearchChanged()\"></ion-searchbar>",
|
|
351
|
-
styles: ["ion-searchbar{padding-top:3px;padding-bottom:0}"]
|
|
352
|
-
}),
|
|
353
|
-
__metadata("design:paramtypes", [LoggingService,
|
|
354
|
-
LoggingViewerFilterService])
|
|
355
|
-
], LoggingViewerSearchComponent);
|
|
356
|
-
return LoggingViewerSearchComponent;
|
|
357
|
-
}());
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* Ionic modal containing [LoggingViewerComponent](LoggingViewerComponent.html),
|
|
361
|
-
* [LoggingViewerLevelsComponent](LoggingViewerLevelsComponent.html) and
|
|
362
|
-
* [LoggingViewerSearchComponent](LoggingViewerSearchComponent.html).
|
|
363
|
-
*/
|
|
364
|
-
var LoggingViewerModalComponent = /** @class */ (function () {
|
|
365
|
-
/**
|
|
366
|
-
* Creates a new instance of the component.
|
|
367
|
-
*/
|
|
368
|
-
function LoggingViewerModalComponent(platform, alertController, modalController, loggingService) {
|
|
369
|
-
this.alertController = alertController;
|
|
370
|
-
this.modalController = modalController;
|
|
371
|
-
this.loggingService = loggingService;
|
|
372
|
-
this.logger = loggingService.getLogger("Ionic.Logging.Viewer.Modal.Component");
|
|
373
|
-
var methodName = "ctor";
|
|
374
|
-
this.logger.entry(methodName);
|
|
375
|
-
this.isAndroid = platform.is("android");
|
|
376
|
-
this.logger.exit(methodName);
|
|
377
|
-
}
|
|
378
|
-
LoggingViewerModalComponent_1 = LoggingViewerModalComponent;
|
|
379
|
-
/**
|
|
380
|
-
* Initializes the LoggingViewerModalComponent.
|
|
381
|
-
* It configures the supported translations.
|
|
382
|
-
*/
|
|
383
|
-
LoggingViewerModalComponent.prototype.ngOnInit = function () {
|
|
384
|
-
// prepare translations
|
|
385
|
-
this.translations = {};
|
|
386
|
-
this.translations[LoggingViewerModalComponent_1.languageEn] = {
|
|
387
|
-
cancel: "Cancel",
|
|
388
|
-
confirmDelete: "Delete all log messages?",
|
|
389
|
-
ok: "Ok",
|
|
390
|
-
searchPlaceholder: "Search",
|
|
391
|
-
title: "Logging",
|
|
392
|
-
};
|
|
393
|
-
this.translations[LoggingViewerModalComponent_1.languageDe] = {
|
|
394
|
-
cancel: "Abbrechen",
|
|
395
|
-
confirmDelete: "Alle Logs löschen?",
|
|
396
|
-
ok: "Ok",
|
|
397
|
-
searchPlaceholder: "Suchen",
|
|
398
|
-
title: "Logging",
|
|
399
|
-
};
|
|
400
|
-
};
|
|
401
|
-
/**
|
|
402
|
-
* Eventhandler called by Ionic when the modal is opened.
|
|
403
|
-
*/
|
|
404
|
-
LoggingViewerModalComponent.prototype.ionViewDidEnter = function () {
|
|
405
|
-
var methodName = "ionViewDidEnter";
|
|
406
|
-
this.logger.entry(methodName);
|
|
407
|
-
this.logger.exit(methodName);
|
|
408
|
-
};
|
|
409
|
-
/**
|
|
410
|
-
* Eventhandler called when the cancel button is clicked.
|
|
411
|
-
*/
|
|
412
|
-
LoggingViewerModalComponent.prototype.onClose = function () {
|
|
413
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
414
|
-
var methodName;
|
|
415
|
-
return __generator(this, function (_a) {
|
|
416
|
-
switch (_a.label) {
|
|
417
|
-
case 0:
|
|
418
|
-
methodName = "onClose";
|
|
419
|
-
this.logger.entry(methodName);
|
|
420
|
-
return [4 /*yield*/, this.modalController.dismiss()];
|
|
421
|
-
case 1:
|
|
422
|
-
_a.sent();
|
|
423
|
-
this.logger.exit(methodName);
|
|
424
|
-
return [2 /*return*/];
|
|
425
|
-
}
|
|
426
|
-
});
|
|
427
|
-
});
|
|
428
|
-
};
|
|
429
|
-
/**
|
|
430
|
-
* Eventhandler called when the clear button is clicked.
|
|
431
|
-
*/
|
|
432
|
-
LoggingViewerModalComponent.prototype.onClearLogs = function () {
|
|
433
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
434
|
-
var methodName, alert;
|
|
435
|
-
return __generator(this, function (_a) {
|
|
436
|
-
switch (_a.label) {
|
|
437
|
-
case 0:
|
|
438
|
-
methodName = "onClearLogs";
|
|
439
|
-
this.logger.entry(methodName);
|
|
440
|
-
return [4 /*yield*/, this.alertController.create({
|
|
441
|
-
header: this.getTranslation().confirmDelete,
|
|
442
|
-
buttons: [
|
|
443
|
-
{
|
|
444
|
-
text: this.getTranslation().cancel,
|
|
445
|
-
role: "cancel",
|
|
446
|
-
cssClass: "secondary"
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
text: this.getTranslation().ok,
|
|
450
|
-
handler: this.clearLogs
|
|
451
|
-
},
|
|
452
|
-
]
|
|
453
|
-
})];
|
|
454
|
-
case 1:
|
|
455
|
-
alert = _a.sent();
|
|
456
|
-
return [4 /*yield*/, alert.present()];
|
|
457
|
-
case 2:
|
|
458
|
-
_a.sent();
|
|
459
|
-
this.logger.exit(methodName);
|
|
460
|
-
return [2 /*return*/];
|
|
461
|
-
}
|
|
462
|
-
});
|
|
463
|
-
});
|
|
464
|
-
};
|
|
465
|
-
/**
|
|
466
|
-
* Clear logs.
|
|
467
|
-
*/
|
|
468
|
-
LoggingViewerModalComponent.prototype.clearLogs = function () {
|
|
469
|
-
var e_1, _a;
|
|
470
|
-
if (this.localStorageKeys) {
|
|
471
|
-
try {
|
|
472
|
-
for (var _b = __values(this.localStorageKeys.split(",")), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
473
|
-
var localStorageKey = _c.value;
|
|
474
|
-
this.loggingService.removeLogMessagesFromLocalStorage(localStorageKey);
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
478
|
-
finally {
|
|
479
|
-
try {
|
|
480
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
481
|
-
}
|
|
482
|
-
finally { if (e_1) throw e_1.error; }
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
else {
|
|
486
|
-
this.loggingService.removeLogMessages();
|
|
487
|
-
}
|
|
488
|
-
};
|
|
489
|
-
/**
|
|
490
|
-
* Helper method returning the current translation:
|
|
491
|
-
* - the property translation if defined
|
|
492
|
-
* - the translation according property language if valid
|
|
493
|
-
* - English translation, otherwise
|
|
494
|
-
*/
|
|
495
|
-
LoggingViewerModalComponent.prototype.getTranslation = function () {
|
|
496
|
-
if (typeof this.translation !== "undefined") {
|
|
497
|
-
return this.translation;
|
|
498
|
-
}
|
|
499
|
-
else if (typeof this.language !== "undefined" && typeof this.translations[this.language] === "object") {
|
|
500
|
-
return this.translations[this.language];
|
|
501
|
-
}
|
|
502
|
-
else {
|
|
503
|
-
return this.translations[LoggingViewerModalComponent_1.languageEn];
|
|
504
|
-
}
|
|
505
|
-
};
|
|
506
|
-
var LoggingViewerModalComponent_1;
|
|
507
|
-
LoggingViewerModalComponent.languageEn = "en";
|
|
508
|
-
LoggingViewerModalComponent.languageDe = "de";
|
|
509
|
-
LoggingViewerModalComponent.ctorParameters = function () { return [
|
|
510
|
-
{ type: Platform },
|
|
511
|
-
{ type: AlertController },
|
|
512
|
-
{ type: ModalController },
|
|
513
|
-
{ type: LoggingService }
|
|
514
|
-
]; };
|
|
515
|
-
__decorate([
|
|
516
|
-
Input(),
|
|
517
|
-
__metadata("design:type", String)
|
|
518
|
-
], LoggingViewerModalComponent.prototype, "language", void 0);
|
|
519
|
-
__decorate([
|
|
520
|
-
Input(),
|
|
521
|
-
__metadata("design:type", Object)
|
|
522
|
-
], LoggingViewerModalComponent.prototype, "translation", void 0);
|
|
523
|
-
__decorate([
|
|
524
|
-
Input(),
|
|
525
|
-
__metadata("design:type", String)
|
|
526
|
-
], LoggingViewerModalComponent.prototype, "localStorageKeys", void 0);
|
|
527
|
-
__decorate([
|
|
528
|
-
Input(),
|
|
529
|
-
__metadata("design:type", Boolean)
|
|
530
|
-
], LoggingViewerModalComponent.prototype, "allowClearLogs", void 0);
|
|
531
|
-
LoggingViewerModalComponent = LoggingViewerModalComponent_1 = __decorate([
|
|
532
|
-
Component({
|
|
533
|
-
selector: "ionic-logging-viewer-modal",
|
|
534
|
-
template: "<ion-header>\n\t<ion-toolbar color=primary>\n\t\t<ion-title>{{ getTranslation().title }}</ion-title>\n\t\t<ion-buttons slot=\"start\">\n\t\t\t<ion-button *ngIf=\"!isAndroid\" (click)=\"onClose()\">\n\t\t\t\t{{ getTranslation().cancel }}\n\t\t\t</ion-button>\n\t\t\t<ion-button *ngIf=\"isAndroid\" icon-only (click)=\"onClose()\">\n\t\t\t\t<ion-icon name=\"md-close\"></ion-icon>\n\t\t\t</ion-button>\n\t\t</ion-buttons>\n\t</ion-toolbar>\n\t<ion-toolbar>\n\t\t<ionic-logging-viewer-search [placeholder]=\"getTranslation().searchPlaceholder\"></ionic-logging-viewer-search>\n\t\t<ion-buttons slot=\"end\" *ngIf=\"allowClearLogs !== false\" class=\"clearLogs\">\n\t\t\t<ion-button (click)=\"onClearLogs()\">\n\t\t\t\t<ion-icon name=\"trash-outline\"></ion-icon>\n\t\t\t</ion-button>\n\t\t</ion-buttons>\n\t</ion-toolbar>\n\t<ion-toolbar>\n\t\t<ionic-logging-viewer-levels></ionic-logging-viewer-levels>\n\t</ion-toolbar>\n</ion-header>\n<ion-content>\n\t<ionic-logging-viewer [localStorageKeys]=\"localStorageKeys\"></ionic-logging-viewer>\n</ion-content>",
|
|
535
|
-
styles: ["ionic-logging-viewer-levels{width:100%;padding-left:12px;padding-right:12px}.clearLogs{padding-top:3px}"]
|
|
536
|
-
}),
|
|
537
|
-
__metadata("design:paramtypes", [Platform,
|
|
538
|
-
AlertController,
|
|
539
|
-
ModalController,
|
|
540
|
-
LoggingService])
|
|
541
|
-
], LoggingViewerModalComponent);
|
|
542
|
-
return LoggingViewerModalComponent;
|
|
543
|
-
}());
|
|
544
|
-
|
|
545
|
-
var LoggingViewerModule = /** @class */ (function () {
|
|
546
|
-
function LoggingViewerModule() {
|
|
547
|
-
}
|
|
548
|
-
LoggingViewerModule = __decorate([
|
|
549
|
-
NgModule({
|
|
550
|
-
imports: [
|
|
551
|
-
CommonModule,
|
|
552
|
-
FormsModule,
|
|
553
|
-
IonicModule
|
|
554
|
-
],
|
|
555
|
-
declarations: [
|
|
556
|
-
LoggingViewerComponent,
|
|
557
|
-
LoggingViewerSearchComponent,
|
|
558
|
-
LoggingViewerLevelsComponent,
|
|
559
|
-
LoggingViewerModalComponent
|
|
560
|
-
],
|
|
561
|
-
entryComponents: [],
|
|
562
|
-
exports: [
|
|
563
|
-
LoggingViewerComponent,
|
|
564
|
-
LoggingViewerSearchComponent,
|
|
565
|
-
LoggingViewerLevelsComponent,
|
|
566
|
-
LoggingViewerModalComponent
|
|
567
|
-
],
|
|
568
|
-
providers: [
|
|
569
|
-
LoggingViewerFilterService
|
|
570
|
-
]
|
|
571
|
-
})
|
|
572
|
-
], LoggingViewerModule);
|
|
573
|
-
return LoggingViewerModule;
|
|
574
|
-
}());
|
|
575
|
-
|
|
576
|
-
/*
|
|
577
|
-
* Public API Surface of ionic-logging-viewer
|
|
578
|
-
*/
|
|
579
|
-
|
|
580
|
-
/**
|
|
581
|
-
* Generated bundle index. Do not edit.
|
|
582
|
-
*/
|
|
583
|
-
|
|
584
|
-
export { LoggingViewerComponent, LoggingViewerLevelsComponent, LoggingViewerModalComponent, LoggingViewerModule, LoggingViewerSearchComponent, LoggingViewerFilterService as ɵa };
|
|
585
|
-
//# sourceMappingURL=ionic-logging-viewer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ionic-logging-viewer.js","sources":["ng://ionic-logging-viewer/lib/logging-viewer-filter.service.ts","ng://ionic-logging-viewer/lib/logging-viewer/logging-viewer.component.ts","ng://ionic-logging-viewer/lib/logging-viewer-levels/logging-viewer-levels.component.ts","ng://ionic-logging-viewer/lib/logging-viewer-search/logging-viewer-search.component.ts","ng://ionic-logging-viewer/lib/logging-viewer-modal/logging-viewer-modal.component.ts","ng://ionic-logging-viewer/lib/logging-viewer.module.ts","ng://ionic-logging-viewer/public_api.ts","ng://ionic-logging-viewer/ionic-logging-viewer.ts"],"sourcesContent":["import { EventEmitter, Injectable } from \"@angular/core\";\n\nimport { Logger, LoggingService } from \"ionic-logging-service\";\n\n/**\n * Service for storing filter settings for logging viewer.\n */\n@Injectable()\nexport class LoggingViewerFilterService {\n\n\t/**\n\t * Event triggered when the filter was changed.\n\t */\n\tpublic filterChanged: EventEmitter<void>;\n\n\tprivate logger: Logger;\n\tprivate levelValue: string;\n\tprivate searchValue: string;\n\n\t/**\n\t * Creates a new instance of the service.\n\t * @param loggingService needed for internal logging.\n\t */\n\tconstructor(\n\t\tloggingService: LoggingService) {\n\n\t\tthis.logger = loggingService.getLogger(\"Ionic.Logging.Viewer.Filter.Service\");\n\t\tconst methodName = \"ctor\";\n\t\tthis.logger.entry(methodName);\n\n\t\tthis.levelValue = \"DEBUG\";\n\t\tthis.searchValue = \"\";\n\t\tthis.filterChanged = new EventEmitter<void>();\n\n\t\tthis.logger.exit(methodName);\n\t}\n\n\t/**\n\t * Gets the current log level.\n\t * @return log level\n\t */\n\tpublic get level(): string {\n\t\treturn this.levelValue;\n\t}\n\n\t/**\n\t * Sets the new log level and emits a filterChanged event.\n\t * @param value new slog level\n\t */\n\tpublic set level(value: string) {\n\t\tthis.levelValue = value;\n\t\tthis.filterChanged.emit();\n\t}\n\n\t/**\n\t * Gets the current search value.\n\t * @return search value\n\t */\n\tpublic get search(): string {\n\t\treturn this.searchValue;\n\t}\n\n\t/**\n\t * Sets the new search value and emits a filterChanged event.\n\t * @param value new search value\n\t */\n\tpublic set search(value: string) {\n\t\tthis.searchValue = value;\n\t\tthis.filterChanged.emit();\n\t}\n}\n","import { Component, OnDestroy, OnInit, Input } from \"@angular/core\";\nimport { Subscription } from \"rxjs\";\n\nimport { Logger, LoggingService, LogLevelConverter, LogMessage } from \"ionic-logging-service\";\n\nimport { LoggingViewerFilterService } from \"../logging-viewer-filter.service\";\n\n/**\n * Component for displaying the current logs.\n *\n * The component can be embedded in any web page using:\n *\n * <ionic-logging-viewer></ionic-logging-viewer>\n */\n@Component({\n\tselector: \"ionic-logging-viewer\",\n\ttemplateUrl: \"./logging-viewer.component.html\",\n\tstyleUrls: [\"./logging-viewer.component.scss\"]\n})\nexport class LoggingViewerComponent implements OnInit, OnDestroy {\n\n\t/**\n\t * Comma-separated list of localStorageKeys. If set, the logs get loaded from localStorage instead of memory.\n\t */\n\t@Input()\n\tpublic localStorageKeys: string;\n\n\t/**\n\t * Log messages which fulfill the filter condition.\n\t */\n\tpublic logMessagesForDisplay: LogMessage[];\n\n\tprivate logger: Logger;\n\tprivate logMessages: LogMessage[];\n\tprivate logMessagesChangedSubscription: Subscription;\n\tprivate filterChangedSubscription: Subscription;\n\n\t/**\n\t * Creates a new instance of the component.\n\t */\n\tconstructor(\n\t\tprivate loggingService: LoggingService,\n\t\tprivate loggingViewerFilterService: LoggingViewerFilterService) {\n\n\t\tthis.logger = loggingService.getLogger(\"Ionic.Logging.Viewer.Component\");\n\t\tconst methodName = \"ctor\";\n\t\tthis.logger.entry(methodName);\n\n\t\tthis.logger.exit(methodName);\n\t}\n\n\t/**\n\t * Initialize the component.\n\t *\n\t * This is done by reading the filter data from [LoggingViewerFilterService](LoggingViewerFilterService.html)\n\t * and the log messages from [LoggingService](../../../ionic-logging-service/typedoc/index.html).\n\t * If the localStorageKeys property is set, the messages are read from local storage.\n\t */\n\tpublic ngOnInit(): void {\n\t\tconst methodName = \"ngOnInit\";\n\t\tthis.logger.entry(methodName);\n\n\t\tthis.loadLogMessages();\n\t\tthis.filterLogMessages();\n\n\t\t// subscribe to loggingService.logMessagesChanged event, to refresh, when new message is logged\n\t\tthis.logMessagesChangedSubscription = this.loggingService.logMessagesChanged.subscribe(async () => {\n\t\t\tthis.loadLogMessages();\n\t\t\tthis.filterLogMessages();\n\t\t});\n\n\t\t// subscribe to loggingViewerFilterService.filterChanged event, to refresh, when filter is modified\n\t\tthis.filterChangedSubscription = this.loggingViewerFilterService.filterChanged.subscribe(() => {\n\t\t\tthis.filterLogMessages();\n\t\t});\n\n\t\tthis.logger.exit(methodName);\n\t}\n\n\t/**\n\t * Clean up.\n\t */\n\tpublic ngOnDestroy(): void {\n\t\tconst methodName = \"ngOnDestroy\";\n\t\tthis.logger.entry(methodName);\n\n\t\tthis.logMessagesChangedSubscription.unsubscribe();\n\t\tthis.filterChangedSubscription.unsubscribe();\n\n\t\tthis.logger.exit(methodName);\n\t}\n\n\t/**\n\t * Filter the log messages.\n\t */\n\tpublic filterLogMessages(): void {\n\t\tthis.logMessagesForDisplay = this.logMessages.filter((message) => {\n\t\t\treturn this.filterLogMessagesByLevel(message) && this.filterLogMessagesBySearch(message);\n\t\t});\n\t}\n\n\t/**\n\t * Check if the log message's level fulfills the level condition.\n\t *\n\t * @param message the log message to check\n\t * @returns true if check was successful\n\t */\n\tpublic filterLogMessagesByLevel(message: LogMessage): boolean {\n\t\tconst levelValue = this.loggingViewerFilterService.level;\n\t\treturn LogLevelConverter.levelFromString(message.level) >= LogLevelConverter.levelFromString(levelValue);\n\t}\n\n\t/**\n\t * Check if the log message fulfills the search condition.\n\t *\n\t * The search value gets searched in:\n\t * - logger name\n\t * - method name\n\t * - message\n\t *\n\t * @param message the log message to check\n\t * @returns true if check was successful\n\t */\n\tpublic filterLogMessagesBySearch(message: LogMessage): boolean {\n\t\tconst searchValue = new RegExp(this.loggingViewerFilterService.search, \"i\");\n\t\treturn message.logger.search(searchValue) >= 0 ||\n\t\t\tmessage.methodName.search(searchValue) >= 0 ||\n\t\t\tmessage.message.join(\"|\").search(searchValue) >= 0;\n\t}\n\n\t/**\n\t * Load the current log messages.\n\t * For unit test purposes mainly.\n\t */\n\tpublic loadLogMessages(): void {\n\t\tif (this.localStorageKeys) {\n\t\t\tthis.logMessages = [];\n\t\t\tfor (const localStorageKey of this.localStorageKeys.split(\",\")) {\n\t\t\t\tthis.logMessages = this.logMessages.concat(this.loggingService.getLogMessagesFromLocalStorage(localStorageKey));\n\t\t\t}\n\t\t\tthis.logMessages = this.logMessages.sort((a, b) => a.timeStamp.getTime() - b.timeStamp.getTime());\n\t\t} else {\n\t\t\tthis.logMessages = this.loggingService.getLogMessages();\n\t\t}\n\t}\n}\n","import { Component, OnDestroy, OnInit } from \"@angular/core\";\nimport { Subscription } from \"rxjs\";\n\nimport { Logger, LoggingService } from \"ionic-logging-service\";\n\nimport { LoggingViewerFilterService } from \"../logging-viewer-filter.service\";\n\n/**\n * Component for displaying the log levels for filtering the current logs.\n *\n * The component can be embedded in any web page using:\n *\n * <ionic-logging-viewer-levels></ionic-logging-viewer-levels>\n */\n@Component({\n\tselector: \"ionic-logging-viewer-levels\",\n\ttemplateUrl: \"./logging-viewer-levels.component.html\",\n\tstyleUrls: [\"./logging-viewer-levels.component.scss\"]\n})\nexport class LoggingViewerLevelsComponent implements OnInit, OnDestroy {\n\n\t/**\n\t * Log levels used for filtering: DEBUG, INFO, WARN, ERROR\n\t */\n\tpublic logLevels: string[];\n\n\t/**\n\t * Selected level.\n\t */\n\tpublic selectedLevel: string;\n\n\tprivate logger: Logger;\n\tprivate filterChangedSubscription: Subscription;\n\n\t/**\n\t * Creates a new instance of the component.\n\t */\n\tconstructor(\n\t\tloggingService: LoggingService,\n\t\tprivate loggingViewerFilterService: LoggingViewerFilterService) {\n\n\t\tthis.logger = loggingService.getLogger(\"Ionic.Logging.Viewer.Levels.Component\");\n\t\tconst methodName = \"ctor\";\n\t\tthis.logger.entry(methodName);\n\n\t\tthis.logLevels = [];\n\t\tthis.logLevels.push(\n\t\t\t\"DEBUG\",\n\t\t\t\"INFO\",\n\t\t\t\"WARN\",\n\t\t\t\"ERROR\",\n\t\t);\n\n\t\tthis.logger.exit(methodName);\n\t}\n\n\t/**\n\t * Initialize the component.\n\t *\n\t * This is done by reading the filter data from [LoggingViewerFilterService](LoggingViewerFilterService.html).\n\t */\n\tpublic ngOnInit(): void {\n\t\tconst methodName = \"ngOnInit\";\n\t\tthis.logger.entry(methodName);\n\n\t\tthis.selectedLevel = this.loggingViewerFilterService.level;\n\n\t\t// subscribe to loggingViewerFilterService.filterChanged event, to refresh,\n\t\t// when someone else modifies the level\n\t\tthis.filterChangedSubscription = this.loggingViewerFilterService.filterChanged.subscribe(() => {\n\t\t\tthis.selectedLevel = this.loggingViewerFilterService.level;\n\t\t});\n\n\t\tthis.logger.exit(methodName);\n\t}\n\n\t/**\n\t * Clean up.\n\t */\n\tpublic ngOnDestroy(): void {\n\t\tconst methodName = \"ngOnDestroy\";\n\t\tthis.logger.entry(methodName);\n\n\t\tthis.filterChangedSubscription.unsubscribe();\n\n\t\tthis.logger.exit(methodName);\n\t}\n\n\t/**\n\t * Callback when the level was changed in the UI.\n\t */\n\tpublic onLevelChanged(): void {\n\t\tconst methodName = \"onLevelChanged\";\n\t\tthis.logger.entry(methodName, this.selectedLevel);\n\n\t\tthis.loggingViewerFilterService.level = this.selectedLevel;\n\n\t\tthis.logger.exit(methodName);\n\t}\n}\n","import { Component, OnInit, OnDestroy, Input } from \"@angular/core\";\n\nimport { Subscription } from \"rxjs\";\n\nimport { LoggingService, Logger } from \"ionic-logging-service\";\n\nimport { LoggingViewerFilterService } from \"../logging-viewer-filter.service\";\n\n/**\n * Component for displaying the search bar for filtering the current logs.\n *\n * The component can be embedded in any web page using:\n *\n * <ionic-logging-viewer-search placeholder=\"Search\"></ionic-logging-viewer-search>\n */\n@Component({\n\tselector: \"ionic-logging-viewer-search\",\n\ttemplateUrl: \"./logging-viewer-search.component.html\",\n\tstyleUrls: [\"./logging-viewer-search.component.scss\"]\n})\nexport class LoggingViewerSearchComponent implements OnInit, OnDestroy {\n\n\t/**\n\t * Placeholder to be shown in the empty search bar.\n\t */\n\t@Input()\n\tpublic placeholder: string;\n\n\t/**\n\t * Current search value.\n\t */\n\tpublic search: string;\n\n\tprivate logger: Logger;\n\tprivate filterChangedSubscription: Subscription;\n\n\t/**\n\t * Creates a new instance of the component.\n\t */\n\tconstructor(\n\t\tloggingService: LoggingService,\n\t\tprivate loggingViewerFilterService: LoggingViewerFilterService) {\n\n\t\tthis.logger = loggingService.getLogger(\"Ionic.Logging.Viewer.Search.Component\");\n\t\tconst methodName = \"ctor\";\n\t\tthis.logger.entry(methodName);\n\n\t\tthis.logger.exit(methodName);\n\t}\n\n\t/**\n\t * Initialize the component.\n\t *\n\t * This is done by reading the filter data from [LoggingViewerFilterService](LoggingViewerFilterService.html).\n\t */\n\tpublic ngOnInit(): void {\n\t\tconst methodName = \"ngOnInit\";\n\t\tthis.logger.entry(methodName);\n\n\t\tif (!this.placeholder) {\n\t\t\tthis.placeholder = \"Search\";\n\t\t}\n\t\tthis.search = this.loggingViewerFilterService.search;\n\n\t\t// subscribe to loggingViewerFilterService.filterChanged event, to refresh,\n\t\t// when someone else modifies the search value\n\t\tthis.filterChangedSubscription = this.loggingViewerFilterService.filterChanged.subscribe(() => {\n\t\t\tthis.search = this.loggingViewerFilterService.search;\n\t\t});\n\n\t\tthis.logger.exit(methodName);\n\t}\n\n\t/**\n\t * Clean up.\n\t */\n\tpublic ngOnDestroy(): void {\n\t\tconst methodName = \"ngOnDestroy\";\n\t\tthis.logger.entry(methodName);\n\n\t\tthis.filterChangedSubscription.unsubscribe();\n\n\t\tthis.logger.exit(methodName);\n\t}\n\n\t/**\n\t * Callback when the search value was changed in the UI.\n\t */\n\tpublic onSearchChanged(): void {\n\t\tconst methodName = \"onSearchChanged\";\n\t\tthis.logger.entry(methodName, this.search);\n\n\t\tthis.loggingViewerFilterService.search = this.search;\n\n\t\tthis.logger.exit(methodName);\n\t}\n}\n","import { Component, OnInit, Input } from \"@angular/core\";\n\nimport { ModalController, Platform, AlertController } from \"@ionic/angular\";\n\nimport { Logger, LoggingService } from \"ionic-logging-service\";\n\nimport { LoggingViewerTranslation } from \"../logging-viewer-translation.model\";\n\n/**\n * Ionic modal containing [LoggingViewerComponent](LoggingViewerComponent.html),\n * [LoggingViewerLevelsComponent](LoggingViewerLevelsComponent.html) and\n * [LoggingViewerSearchComponent](LoggingViewerSearchComponent.html).\n */\n@Component({\n\tselector: \"ionic-logging-viewer-modal\",\n\ttemplateUrl: \"./logging-viewer-modal.component.html\",\n\tstyleUrls: [\"./logging-viewer-modal.component.scss\"]\n})\nexport class LoggingViewerModalComponent implements OnInit {\n\n\tprivate static languageEn = \"en\";\n\tprivate static languageDe = \"de\";\n\n\t/**\n\t * Language to be used for the modal.\n\t * Currently supported: en, de\n\t */\n\t@Input()\n\tpublic language: string;\n\n\t/**\n\t * Translation to be used for the modal.\n\t * If specified, the language is ignored.\n\t */\n\t@Input()\n\tpublic translation: LoggingViewerTranslation;\n\n\t/**\n\t * Comma-separated list of localStorageKeys. If set, the logs get loaded from localStorage instead of memory.\n\t */\n\t@Input()\n\tpublic localStorageKeys: string;\n\n\t/**\n\t * Flag showing a delete button, which removes all existing log messages.\n\t */\n\t@Input()\n\tpublic allowClearLogs: boolean;\n\n\t/**\n\t * Flag controlling which close button will be shown.\n\t */\n\tpublic isAndroid: boolean;\n\n\t// tslint:disable-next-line:completed-docs\n\tprivate logger: Logger;\n\n\t// tslint:disable-next-line:completed-docs\n\tprivate translations: { [language: string]: LoggingViewerTranslation; };\n\n\t/**\n\t * Creates a new instance of the component.\n\t */\n\tconstructor(\n\t\tplatform: Platform,\n\t\tprivate alertController: AlertController,\n\t\tprivate modalController: ModalController,\n\t\tprivate loggingService: LoggingService) {\n\n\t\tthis.logger = loggingService.getLogger(\"Ionic.Logging.Viewer.Modal.Component\");\n\t\tconst methodName = \"ctor\";\n\t\tthis.logger.entry(methodName);\n\n\t\tthis.isAndroid = platform.is(\"android\");\n\n\t\tthis.logger.exit(methodName);\n\t}\n\n\t/**\n\t * Initializes the LoggingViewerModalComponent.\n\t * It configures the supported translations.\n\t */\n\tpublic ngOnInit(): void {\n\t\t// prepare translations\n\t\tthis.translations = {};\n\t\tthis.translations[LoggingViewerModalComponent.languageEn] = {\n\t\t\tcancel: \"Cancel\",\n\t\t\tconfirmDelete: \"Delete all log messages?\",\n\t\t\tok: \"Ok\",\n\t\t\tsearchPlaceholder: \"Search\",\n\t\t\ttitle: \"Logging\",\n\t\t};\n\t\tthis.translations[LoggingViewerModalComponent.languageDe] = {\n\t\t\tcancel: \"Abbrechen\",\n\t\t\tconfirmDelete: \"Alle Logs löschen?\",\n\t\t\tok: \"Ok\",\n\t\t\tsearchPlaceholder: \"Suchen\",\n\t\t\ttitle: \"Logging\",\n\t\t};\n\t}\n\n\t/**\n\t * Eventhandler called by Ionic when the modal is opened.\n\t */\n\tpublic ionViewDidEnter(): void {\n\t\tconst methodName = \"ionViewDidEnter\";\n\t\tthis.logger.entry(methodName);\n\n\t\tthis.logger.exit(methodName);\n\t}\n\n\t/**\n\t * Eventhandler called when the cancel button is clicked.\n\t */\n\tpublic async onClose(): Promise<void> {\n\t\tconst methodName = \"onClose\";\n\t\tthis.logger.entry(methodName);\n\n\t\tawait this.modalController.dismiss();\n\n\t\tthis.logger.exit(methodName);\n\t}\n\n\t/**\n\t * Eventhandler called when the clear button is clicked.\n\t */\n\tpublic async onClearLogs(): Promise<void> {\n\t\tconst methodName = \"onClearLogs\";\n\t\tthis.logger.entry(methodName);\n\n\t\tconst alert = await this.alertController.create({\n\t\t\theader: this.getTranslation().confirmDelete,\n\t\t\tbuttons: [\n\t\t\t\t{\n\t\t\t\t\ttext: this.getTranslation().cancel,\n\t\t\t\t\trole: \"cancel\",\n\t\t\t\t\tcssClass: \"secondary\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\ttext: this.getTranslation().ok,\n\t\t\t\t\thandler: this.clearLogs\n\t\t\t\t},\n\t\t\t]\n\t\t});\n\t\tawait alert.present();\n\n\t\tthis.logger.exit(methodName);\n\t}\n\n\t/**\n\t * Clear logs.\n\t */\n\tpublic clearLogs(): void {\n\t\tif (this.localStorageKeys) {\n\t\t\tfor (const localStorageKey of this.localStorageKeys.split(\",\")) {\n\t\t\t\tthis.loggingService.removeLogMessagesFromLocalStorage(localStorageKey);\n\t\t\t}\n\t\t} else {\n\t\t\tthis.loggingService.removeLogMessages();\n\t\t}\n\t}\n\n\t/**\n\t * Helper method returning the current translation:\n\t * - the property translation if defined\n\t * - the translation according property language if valid\n\t * - English translation, otherwise\n\t */\n\tpublic getTranslation(): LoggingViewerTranslation {\n\t\tif (typeof this.translation !== \"undefined\") {\n\t\t\treturn this.translation;\n\t\t} else if (typeof this.language !== \"undefined\" && typeof this.translations[this.language] === \"object\") {\n\t\t\treturn this.translations[this.language];\n\t\t} else {\n\t\t\treturn this.translations[LoggingViewerModalComponent.languageEn];\n\t\t}\n\t}\n}\n","import { NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { FormsModule } from \"@angular/forms\";\n\nimport { IonicModule } from \"@ionic/angular\";\n\nimport { LoggingViewerComponent } from \"./logging-viewer/logging-viewer.component\";\nimport { LoggingViewerFilterService } from \"./logging-viewer-filter.service\";\nimport { LoggingViewerLevelsComponent } from \"./logging-viewer-levels/logging-viewer-levels.component\";\nimport { LoggingViewerSearchComponent } from \"./logging-viewer-search/logging-viewer-search.component\";\nimport { LoggingViewerModalComponent } from \"./logging-viewer-modal/logging-viewer-modal.component\";\n\n@NgModule({\n\timports: [\n\t\tCommonModule,\n\t\tFormsModule,\n\t\tIonicModule\n\t],\n\tdeclarations: [\n\t\tLoggingViewerComponent,\n\t\tLoggingViewerSearchComponent,\n\t\tLoggingViewerLevelsComponent,\n\t\tLoggingViewerModalComponent\n\t],\n\tentryComponents: [\n\t],\n\texports: [\n\t\tLoggingViewerComponent,\n\t\tLoggingViewerSearchComponent,\n\t\tLoggingViewerLevelsComponent,\n\t\tLoggingViewerModalComponent\n\t],\n\tproviders: [\n\t\tLoggingViewerFilterService\n\t]\n})\nexport class LoggingViewerModule { }\n","/*\n * Public API Surface of ionic-logging-viewer\n */\n\nexport * from \"./lib/logging-viewer.module\";\nexport * from \"./lib/logging-viewer/logging-viewer.component\";\nexport * from \"./lib/logging-viewer-levels/logging-viewer-levels.component\";\nexport * from \"./lib/logging-viewer-search/logging-viewer-search.component\";\nexport * from \"./lib/logging-viewer-modal/logging-viewer-modal.component\";\nexport * from \"./lib/logging-viewer-modal/logging-viewer-modal-properties.model\";\nexport * from \"./lib/logging-viewer-translation.model\";\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n\nexport {LoggingViewerFilterService as ɵa} from './lib/logging-viewer-filter.service';"],"names":[],"mappings":";;;;;;;AAIA;;;;;;;;IAmBC,oCACC,cAA8B;QAE9B,IAAI,CAAC,MAAM,GAAG,cAAc,CAAC,SAAS,CAAC,qCAAqC,CAAC,CAAC;QAC9E,IAAM,UAAU,GAAG,MAAM,CAAC;QAC1B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAE9B,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC;QAC1B,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,aAAa,GAAG,IAAI,YAAY,EAAQ,CAAC;QAE9C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KAC7B;IAMD,sBAAW,6CAAK;;;;;aAAhB;YACC,OAAO,IAAI,CAAC,UAAU,CAAC;SACvB;;;;;aAMD,UAAiB,KAAa;YAC7B,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;YACxB,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;SAC1B;;;OATA;IAeD,sBAAW,8CAAM;;;;;aAAjB;YACC,OAAO,IAAI,CAAC,WAAW,CAAC;SACxB;;;;;aAMD,UAAkB,KAAa;YAC9B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;YACzB,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;SAC1B;;;OATA;;gBApCgB,cAAc;;IAhBnB,0BAA0B;QADtC,UAAU,EAAE;yCAiBK,cAAc;OAhBnB,0BAA0B,CA8DtC;IAAD,iCAAC;CA9DD;;ACDA;;;;;;;AAYA;;;;IAqBC,gCACS,cAA8B,EAC9B,0BAAsD;QADtD,mBA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