1 | ;
|
2 | /**
|
3 | * @license
|
4 | * Copyright Google LLC All Rights Reserved.
|
5 | *
|
6 | * Use of this source code is governed by an MIT-style license that can be
|
7 | * found in the LICENSE file at https://angular.io/license
|
8 | */
|
9 | Object.defineProperty(exports, "__esModule", { value: true });
|
10 | exports.NullLogger = void 0;
|
11 | const rxjs_1 = require("rxjs");
|
12 | const logger_1 = require("./logger");
|
13 | class NullLogger extends logger_1.Logger {
|
14 | constructor(parent = null) {
|
15 | super('', parent);
|
16 | this._observable = rxjs_1.EMPTY;
|
17 | }
|
18 | asApi() {
|
19 | return {
|
20 | createChild: () => new NullLogger(this),
|
21 | log() { },
|
22 | debug() { },
|
23 | info() { },
|
24 | warn() { },
|
25 | error() { },
|
26 | fatal() { },
|
27 | };
|
28 | }
|
29 | }
|
30 | exports.NullLogger = NullLogger;
|
31 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVsbC1sb2dnZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9hbmd1bGFyX2RldmtpdC9jb3JlL3NyYy9sb2dnZXIvbnVsbC1sb2dnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7R0FNRzs7O0FBRUgsK0JBQTZCO0FBQzdCLHFDQUE2QztBQUU3QyxNQUFhLFVBQVcsU0FBUSxlQUFNO0lBQ3BDLFlBQVksU0FBd0IsSUFBSTtRQUN0QyxLQUFLLENBQUMsRUFBRSxFQUFFLE1BQU0sQ0FBQyxDQUFDO1FBQ2xCLElBQUksQ0FBQyxXQUFXLEdBQUcsWUFBSyxDQUFDO0lBQzNCLENBQUM7SUFFUSxLQUFLO1FBQ1osT0FBTztZQUNMLFdBQVcsRUFBRSxHQUFHLEVBQUUsQ0FBQyxJQUFJLFVBQVUsQ0FBQyxJQUFJLENBQUM7WUFDdkMsR0FBRyx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