@contrast/agent 3.11.24 → 3.11.27

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.
Files changed (139) hide show
  1. package/changelog.config.js +56 -0
  2. package/lib.asar +0 -0
  3. package/node_modules/@colors/colors/LICENSE +26 -0
  4. package/node_modules/@colors/colors/README.md +219 -0
  5. package/node_modules/@colors/colors/examples/normal-usage.js +83 -0
  6. package/node_modules/@colors/colors/examples/safe-string.js +80 -0
  7. package/node_modules/@colors/colors/index.d.ts +136 -0
  8. package/node_modules/@colors/colors/lib/colors.js +211 -0
  9. package/node_modules/@colors/colors/lib/custom/trap.js +46 -0
  10. package/node_modules/@colors/colors/lib/custom/zalgo.js +110 -0
  11. package/node_modules/@colors/colors/lib/extendStringPrototype.js +110 -0
  12. package/node_modules/@colors/colors/lib/index.js +13 -0
  13. package/node_modules/@colors/colors/lib/maps/america.js +10 -0
  14. package/node_modules/@colors/colors/lib/maps/rainbow.js +12 -0
  15. package/node_modules/@colors/colors/lib/maps/random.js +11 -0
  16. package/node_modules/@colors/colors/lib/maps/zebra.js +5 -0
  17. package/node_modules/@colors/colors/lib/styles.js +95 -0
  18. package/node_modules/@colors/colors/lib/system/has-flag.js +35 -0
  19. package/node_modules/@colors/colors/lib/system/supports-colors.js +151 -0
  20. package/node_modules/@colors/colors/package.json +49 -0
  21. package/node_modules/@colors/colors/safe.d.ts +48 -0
  22. package/node_modules/@colors/colors/safe.js +10 -0
  23. package/node_modules/@colors/colors/themes/generic-logging.js +12 -0
  24. package/node_modules/@dabh/diagnostics/README.md +16 -16
  25. package/node_modules/@dabh/diagnostics/package.json +9 -9
  26. package/node_modules/color/README.md +9 -0
  27. package/node_modules/color/index.js +4 -1
  28. package/node_modules/color/package.json +8 -8
  29. package/node_modules/color-string/README.md +6 -2
  30. package/node_modules/color-string/index.js +21 -13
  31. package/node_modules/color-string/package.json +4 -4
  32. package/node_modules/colorspace/package.json +5 -5
  33. package/node_modules/fecha/dist/fecha.min.js +1 -1
  34. package/node_modules/fecha/dist/fecha.min.js.map +1 -0
  35. package/node_modules/fecha/lib/fecha.d.ts +2 -2
  36. package/node_modules/fecha/lib/fecha.js +35 -18
  37. package/node_modules/fecha/lib/fecha.js.map +1 -0
  38. package/node_modules/fecha/lib/fecha.umd.js +35 -18
  39. package/node_modules/fecha/lib/fecha.umd.js.map +1 -0
  40. package/node_modules/fecha/package.json +9 -10
  41. package/node_modules/fecha/src/fecha.ts +524 -0
  42. package/node_modules/logform/.eslintrc +1 -1
  43. package/node_modules/logform/CHANGELOG.md +24 -0
  44. package/node_modules/logform/README.md +15 -17
  45. package/node_modules/logform/browser.js +3 -1
  46. package/node_modules/logform/cli.js +1 -1
  47. package/node_modules/logform/colorize.js +2 -2
  48. package/node_modules/logform/dist/browser.js +8 -2
  49. package/node_modules/logform/dist/cli.js +2 -2
  50. package/node_modules/logform/dist/colorize.js +5 -5
  51. package/node_modules/logform/dist/errors.js +1 -1
  52. package/node_modules/logform/dist/format.js +9 -5
  53. package/node_modules/logform/dist/index.js +53 -20
  54. package/node_modules/logform/dist/json.js +7 -6
  55. package/node_modules/logform/dist/logstash.js +1 -1
  56. package/node_modules/logform/dist/pad-levels.js +4 -4
  57. package/node_modules/logform/dist/printf.js +1 -1
  58. package/node_modules/logform/dist/simple.js +1 -1
  59. package/node_modules/logform/dist/splat.js +2 -2
  60. package/node_modules/logform/dist/uncolorize.js +1 -1
  61. package/node_modules/logform/errors.js +1 -1
  62. package/node_modules/logform/index.d.ts +36 -0
  63. package/node_modules/logform/index.js +19 -20
  64. package/node_modules/logform/json.js +7 -7
  65. package/node_modules/logform/logstash.js +1 -1
  66. package/node_modules/logform/package.json +10 -9
  67. package/node_modules/logform/simple.js +1 -1
  68. package/node_modules/logform/uncolorize.js +1 -1
  69. package/node_modules/safe-stable-stringify/CHANGELOG.md +75 -0
  70. package/node_modules/safe-stable-stringify/LICENSE +21 -0
  71. package/node_modules/safe-stable-stringify/esm/package.json +4 -0
  72. package/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
  73. package/node_modules/safe-stable-stringify/index.d.ts +18 -0
  74. package/node_modules/safe-stable-stringify/index.js +618 -0
  75. package/node_modules/safe-stable-stringify/package.json +69 -0
  76. package/node_modules/safe-stable-stringify/readme.md +170 -0
  77. package/node_modules/safe-stable-stringify/tsconfig.json +22 -0
  78. package/node_modules/unix-dgram/build/Makefile +1 -1
  79. package/node_modules/unix-dgram/build/config.gypi +1 -1
  80. package/node_modules/winston/LICENSE +18 -18
  81. package/node_modules/winston/README.md +1231 -1230
  82. package/node_modules/winston/dist/winston/common.js +10 -10
  83. package/node_modules/winston/dist/winston/config/index.js +17 -17
  84. package/node_modules/winston/dist/winston/container.js +46 -46
  85. package/node_modules/winston/dist/winston/create-logger.js +28 -24
  86. package/node_modules/winston/dist/winston/exception-handler.js +49 -49
  87. package/node_modules/winston/dist/winston/exception-stream.js +27 -27
  88. package/node_modules/winston/dist/winston/logger.js +152 -138
  89. package/node_modules/winston/dist/winston/profiler.js +22 -22
  90. package/node_modules/winston/dist/winston/rejection-handler.js +54 -54
  91. package/node_modules/winston/dist/winston/tail-file.js +14 -14
  92. package/node_modules/winston/dist/winston/transports/console.js +31 -31
  93. package/node_modules/winston/dist/winston/transports/file.js +101 -101
  94. package/node_modules/winston/dist/winston/transports/http.js +119 -41
  95. package/node_modules/winston/dist/winston/transports/index.js +17 -17
  96. package/node_modules/winston/dist/winston/transports/stream.js +24 -24
  97. package/node_modules/winston/dist/winston.js +91 -97
  98. package/node_modules/winston/index.d.ts +213 -193
  99. package/node_modules/winston/lib/winston/common.js +61 -61
  100. package/node_modules/winston/lib/winston/config/index.d.ts +99 -98
  101. package/node_modules/winston/lib/winston/config/index.js +35 -35
  102. package/node_modules/winston/lib/winston/container.js +114 -114
  103. package/node_modules/winston/lib/winston/create-logger.js +104 -104
  104. package/node_modules/winston/lib/winston/exception-handler.js +245 -245
  105. package/node_modules/winston/lib/winston/exception-stream.js +54 -54
  106. package/node_modules/winston/lib/winston/logger.js +676 -667
  107. package/node_modules/winston/lib/winston/profiler.js +51 -51
  108. package/node_modules/winston/lib/winston/rejection-handler.js +251 -251
  109. package/node_modules/winston/lib/winston/tail-file.js +124 -124
  110. package/node_modules/winston/lib/winston/transports/console.js +117 -117
  111. package/node_modules/winston/lib/winston/transports/file.js +695 -695
  112. package/node_modules/winston/lib/winston/transports/http.js +267 -202
  113. package/node_modules/winston/lib/winston/transports/index.d.ts +103 -100
  114. package/node_modules/winston/lib/winston/transports/index.js +56 -56
  115. package/node_modules/winston/lib/winston/transports/stream.js +63 -63
  116. package/node_modules/winston/lib/winston.js +176 -182
  117. package/node_modules/winston/node_modules/winston-transport/.babelrc +3 -0
  118. package/node_modules/winston/node_modules/winston-transport/.eslintrc +7 -0
  119. package/node_modules/winston/node_modules/winston-transport/.gitattributes +1 -0
  120. package/node_modules/winston/node_modules/winston-transport/.nyc_output/c3d7ddb9-cc26-466b-a4f6-993ad69e86f6.json +1 -0
  121. package/node_modules/winston/node_modules/winston-transport/.nyc_output/processinfo/c3d7ddb9-cc26-466b-a4f6-993ad69e86f6.json +1 -0
  122. package/node_modules/winston/node_modules/winston-transport/.nyc_output/processinfo/index.json +1 -0
  123. package/node_modules/winston/node_modules/winston-transport/CHANGELOG.md +126 -0
  124. package/node_modules/winston/node_modules/winston-transport/LICENSE +22 -0
  125. package/node_modules/winston/node_modules/winston-transport/README.md +50 -0
  126. package/node_modules/winston/node_modules/winston-transport/dist/index.js +215 -0
  127. package/node_modules/winston/node_modules/winston-transport/dist/legacy.js +116 -0
  128. package/node_modules/winston/node_modules/winston-transport/index.d.ts +39 -0
  129. package/node_modules/winston/node_modules/winston-transport/index.js +215 -0
  130. package/node_modules/winston/node_modules/winston-transport/legacy.js +119 -0
  131. package/node_modules/winston/node_modules/winston-transport/package.json +56 -0
  132. package/node_modules/winston/package.json +76 -75
  133. package/package.json +4 -4
  134. package/node_modules/@dabh/diagnostics/example.png +0 -0
  135. package/node_modules/color-string/CHANGELOG.md +0 -18
  136. package/node_modules/colorspace/test.js +0 -14
  137. package/node_modules/fecha/CHANGELOG.md +0 -67
  138. package/node_modules/logform/.travis.yml +0 -17
  139. package/node_modules/winston/CHANGELOG.md +0 -560
@@ -1,98 +1,99 @@
1
- // Type definitions for winston 3.0
2
- // Project: https://github.com/winstonjs/winston
3
-
4
- /// <reference types="node" />
5
-
6
- declare namespace winston {
7
- interface AbstractConfigSetLevels {
8
- [key: string]: number;
9
- }
10
-
11
- interface AbstractConfigSetColors {
12
- [key: string]: string | string[];
13
- }
14
-
15
- interface AbstractConfigSet {
16
- levels: AbstractConfigSetLevels;
17
- colors: AbstractConfigSetColors;
18
- }
19
-
20
- interface CliConfigSetLevels extends AbstractConfigSetLevels {
21
- error: number;
22
- warn: number;
23
- help: number;
24
- data: number;
25
- info: number;
26
- debug: number;
27
- prompt: number;
28
- verbose: number;
29
- input: number;
30
- silly: number;
31
- }
32
-
33
- interface CliConfigSetColors extends AbstractConfigSetColors {
34
- error: string | string[];
35
- warn: string | string[];
36
- help: string | string[];
37
- data: string | string[];
38
- info: string | string[];
39
- debug: string | string[];
40
- prompt: string | string[];
41
- verbose: string | string[];
42
- input: string | string[];
43
- silly: string | string[];
44
- }
45
-
46
- interface NpmConfigSetLevels extends AbstractConfigSetLevels {
47
- error: number;
48
- warn: number;
49
- info: number;
50
- http: number;
51
- verbose: number;
52
- debug: number;
53
- silly: number;
54
- }
55
-
56
- interface NpmConfigSetColors extends AbstractConfigSetColors {
57
- error: string | string[];
58
- warn: string | string[];
59
- info: string | string[];
60
- verbose: string | string[];
61
- debug: string | string[];
62
- silly: string | string[];
63
- }
64
-
65
- interface SyslogConfigSetLevels extends AbstractConfigSetLevels {
66
- emerg: number;
67
- alert: number;
68
- crit: number;
69
- error: number;
70
- warning: number;
71
- notice: number;
72
- info: number;
73
- debug: number;
74
- }
75
-
76
- interface SyslogConfigSetColors extends AbstractConfigSetColors {
77
- emerg: string | string[];
78
- alert: string | string[];
79
- crit: string | string[];
80
- error: string | string[];
81
- warning: string | string[];
82
- notice: string | string[];
83
- info: string | string[];
84
- debug: string | string[];
85
- }
86
-
87
- interface Config {
88
- allColors: AbstractConfigSetColors;
89
- cli: { levels: CliConfigSetLevels, colors: CliConfigSetColors };
90
- npm: { levels: NpmConfigSetLevels, colors: NpmConfigSetColors };
91
- syslog: { levels: SyslogConfigSetLevels, colors: SyslogConfigSetColors };
92
-
93
- addColors(colors: AbstractConfigSetColors): void;
94
- }
95
- }
96
-
97
- declare const winston: winston.Config;
98
- export = winston;
1
+ // Type definitions for winston 3.0
2
+ // Project: https://github.com/winstonjs/winston
3
+
4
+ /// <reference types="node" />
5
+
6
+ declare namespace winston {
7
+ interface AbstractConfigSetLevels {
8
+ [key: string]: number;
9
+ }
10
+
11
+ interface AbstractConfigSetColors {
12
+ [key: string]: string | string[];
13
+ }
14
+
15
+ interface AbstractConfigSet {
16
+ levels: AbstractConfigSetLevels;
17
+ colors: AbstractConfigSetColors;
18
+ }
19
+
20
+ interface CliConfigSetLevels extends AbstractConfigSetLevels {
21
+ error: number;
22
+ warn: number;
23
+ help: number;
24
+ data: number;
25
+ info: number;
26
+ debug: number;
27
+ prompt: number;
28
+ verbose: number;
29
+ input: number;
30
+ silly: number;
31
+ }
32
+
33
+ interface CliConfigSetColors extends AbstractConfigSetColors {
34
+ error: string | string[];
35
+ warn: string | string[];
36
+ help: string | string[];
37
+ data: string | string[];
38
+ info: string | string[];
39
+ debug: string | string[];
40
+ prompt: string | string[];
41
+ verbose: string | string[];
42
+ input: string | string[];
43
+ silly: string | string[];
44
+ }
45
+
46
+ interface NpmConfigSetLevels extends AbstractConfigSetLevels {
47
+ error: number;
48
+ warn: number;
49
+ info: number;
50
+ http: number;
51
+ verbose: number;
52
+ debug: number;
53
+ silly: number;
54
+ }
55
+
56
+ interface NpmConfigSetColors extends AbstractConfigSetColors {
57
+ error: string | string[];
58
+ warn: string | string[];
59
+ info: string | string[];
60
+ http: string | string[];
61
+ verbose: string | string[];
62
+ debug: string | string[];
63
+ silly: string | string[];
64
+ }
65
+
66
+ interface SyslogConfigSetLevels extends AbstractConfigSetLevels {
67
+ emerg: number;
68
+ alert: number;
69
+ crit: number;
70
+ error: number;
71
+ warning: number;
72
+ notice: number;
73
+ info: number;
74
+ debug: number;
75
+ }
76
+
77
+ interface SyslogConfigSetColors extends AbstractConfigSetColors {
78
+ emerg: string | string[];
79
+ alert: string | string[];
80
+ crit: string | string[];
81
+ error: string | string[];
82
+ warning: string | string[];
83
+ notice: string | string[];
84
+ info: string | string[];
85
+ debug: string | string[];
86
+ }
87
+
88
+ interface Config {
89
+ allColors: AbstractConfigSetColors;
90
+ cli: { levels: CliConfigSetLevels, colors: CliConfigSetColors };
91
+ npm: { levels: NpmConfigSetLevels, colors: NpmConfigSetColors };
92
+ syslog: { levels: SyslogConfigSetLevels, colors: SyslogConfigSetColors };
93
+
94
+ addColors(colors: AbstractConfigSetColors): void;
95
+ }
96
+ }
97
+
98
+ declare const winston: winston.Config;
99
+ export = winston;
@@ -1,35 +1,35 @@
1
- /**
2
- * index.js: Default settings for all levels that winston knows about.
3
- *
4
- * (C) 2010 Charlie Robbins
5
- * MIT LICENCE
6
- */
7
-
8
- 'use strict';
9
-
10
- const logform = require('logform');
11
- const { configs } = require('triple-beam');
12
-
13
- /**
14
- * Export config set for the CLI.
15
- * @type {Object}
16
- */
17
- exports.cli = logform.levels(configs.cli);
18
-
19
- /**
20
- * Export config set for npm.
21
- * @type {Object}
22
- */
23
- exports.npm = logform.levels(configs.npm);
24
-
25
- /**
26
- * Export config set for the syslog.
27
- * @type {Object}
28
- */
29
- exports.syslog = logform.levels(configs.syslog);
30
-
31
- /**
32
- * Hoist addColors from logform where it was refactored into in winston@3.
33
- * @type {Object}
34
- */
35
- exports.addColors = logform.levels;
1
+ /**
2
+ * index.js: Default settings for all levels that winston knows about.
3
+ *
4
+ * (C) 2010 Charlie Robbins
5
+ * MIT LICENCE
6
+ */
7
+
8
+ 'use strict';
9
+
10
+ const logform = require('logform');
11
+ const { configs } = require('triple-beam');
12
+
13
+ /**
14
+ * Export config set for the CLI.
15
+ * @type {Object}
16
+ */
17
+ exports.cli = logform.levels(configs.cli);
18
+
19
+ /**
20
+ * Export config set for npm.
21
+ * @type {Object}
22
+ */
23
+ exports.npm = logform.levels(configs.npm);
24
+
25
+ /**
26
+ * Export config set for the syslog.
27
+ * @type {Object}
28
+ */
29
+ exports.syslog = logform.levels(configs.syslog);
30
+
31
+ /**
32
+ * Hoist addColors from logform where it was refactored into in winston@3.
33
+ * @type {Object}
34
+ */
35
+ exports.addColors = logform.levels;
@@ -1,114 +1,114 @@
1
- /**
2
- * container.js: Inversion of control container for winston logger instances.
3
- *
4
- * (C) 2010 Charlie Robbins
5
- * MIT LICENCE
6
- */
7
-
8
- 'use strict';
9
-
10
- const createLogger = require('./create-logger');
11
-
12
- /**
13
- * Inversion of control container for winston logger instances.
14
- * @type {Container}
15
- */
16
- module.exports = class Container {
17
- /**
18
- * Constructor function for the Container object responsible for managing a
19
- * set of `winston.Logger` instances based on string ids.
20
- * @param {!Object} [options={}] - Default pass-thru options for Loggers.
21
- */
22
- constructor(options = {}) {
23
- this.loggers = new Map();
24
- this.options = options;
25
- }
26
-
27
- /**
28
- * Retreives a `winston.Logger` instance for the specified `id`. If an
29
- * instance does not exist, one is created.
30
- * @param {!string} id - The id of the Logger to get.
31
- * @param {?Object} [options] - Options for the Logger instance.
32
- * @returns {Logger} - A configured Logger instance with a specified id.
33
- */
34
- add(id, options) {
35
- if (!this.loggers.has(id)) {
36
- // Remark: Simple shallow clone for configuration options in case we pass
37
- // in instantiated protoypal objects
38
- options = Object.assign({}, options || this.options);
39
- const existing = options.transports || this.options.transports;
40
-
41
- // Remark: Make sure if we have an array of transports we slice it to
42
- // make copies of those references.
43
- options.transports = existing ? existing.slice() : [];
44
-
45
- const logger = createLogger(options);
46
- logger.on('close', () => this._delete(id));
47
- this.loggers.set(id, logger);
48
- }
49
-
50
- return this.loggers.get(id);
51
- }
52
-
53
- /**
54
- * Retreives a `winston.Logger` instance for the specified `id`. If
55
- * an instance does not exist, one is created.
56
- * @param {!string} id - The id of the Logger to get.
57
- * @param {?Object} [options] - Options for the Logger instance.
58
- * @returns {Logger} - A configured Logger instance with a specified id.
59
- */
60
- get(id, options) {
61
- return this.add(id, options);
62
- }
63
-
64
- /**
65
- * Check if the container has a logger with the id.
66
- * @param {?string} id - The id of the Logger instance to find.
67
- * @returns {boolean} - Boolean value indicating if this instance has a
68
- * logger with the specified `id`.
69
- */
70
- has(id) {
71
- return !!this.loggers.has(id);
72
- }
73
-
74
- /**
75
- * Closes a `Logger` instance with the specified `id` if it exists.
76
- * If no `id` is supplied then all Loggers are closed.
77
- * @param {?string} id - The id of the Logger instance to close.
78
- * @returns {undefined}
79
- */
80
- close(id) {
81
- if (id) {
82
- return this._removeLogger(id);
83
- }
84
-
85
- this.loggers.forEach((val, key) => this._removeLogger(key));
86
- }
87
-
88
- /**
89
- * Remove a logger based on the id.
90
- * @param {!string} id - The id of the logger to remove.
91
- * @returns {undefined}
92
- * @private
93
- */
94
- _removeLogger(id) {
95
- if (!this.loggers.has(id)) {
96
- return;
97
- }
98
-
99
- const logger = this.loggers.get(id);
100
- logger.close();
101
- this._delete(id);
102
- }
103
-
104
- /**
105
- * Deletes a `Logger` instance with the specified `id`.
106
- * @param {!string} id - The id of the Logger instance to delete from
107
- * container.
108
- * @returns {undefined}
109
- * @private
110
- */
111
- _delete(id) {
112
- this.loggers.delete(id);
113
- }
114
- };
1
+ /**
2
+ * container.js: Inversion of control container for winston logger instances.
3
+ *
4
+ * (C) 2010 Charlie Robbins
5
+ * MIT LICENCE
6
+ */
7
+
8
+ 'use strict';
9
+
10
+ const createLogger = require('./create-logger');
11
+
12
+ /**
13
+ * Inversion of control container for winston logger instances.
14
+ * @type {Container}
15
+ */
16
+ module.exports = class Container {
17
+ /**
18
+ * Constructor function for the Container object responsible for managing a
19
+ * set of `winston.Logger` instances based on string ids.
20
+ * @param {!Object} [options={}] - Default pass-thru options for Loggers.
21
+ */
22
+ constructor(options = {}) {
23
+ this.loggers = new Map();
24
+ this.options = options;
25
+ }
26
+
27
+ /**
28
+ * Retrieves a `winston.Logger` instance for the specified `id`. If an
29
+ * instance does not exist, one is created.
30
+ * @param {!string} id - The id of the Logger to get.
31
+ * @param {?Object} [options] - Options for the Logger instance.
32
+ * @returns {Logger} - A configured Logger instance with a specified id.
33
+ */
34
+ add(id, options) {
35
+ if (!this.loggers.has(id)) {
36
+ // Remark: Simple shallow clone for configuration options in case we pass
37
+ // in instantiated protoypal objects
38
+ options = Object.assign({}, options || this.options);
39
+ const existing = options.transports || this.options.transports;
40
+
41
+ // Remark: Make sure if we have an array of transports we slice it to
42
+ // make copies of those references.
43
+ options.transports = existing ? existing.slice() : [];
44
+
45
+ const logger = createLogger(options);
46
+ logger.on('close', () => this._delete(id));
47
+ this.loggers.set(id, logger);
48
+ }
49
+
50
+ return this.loggers.get(id);
51
+ }
52
+
53
+ /**
54
+ * Retreives a `winston.Logger` instance for the specified `id`. If
55
+ * an instance does not exist, one is created.
56
+ * @param {!string} id - The id of the Logger to get.
57
+ * @param {?Object} [options] - Options for the Logger instance.
58
+ * @returns {Logger} - A configured Logger instance with a specified id.
59
+ */
60
+ get(id, options) {
61
+ return this.add(id, options);
62
+ }
63
+
64
+ /**
65
+ * Check if the container has a logger with the id.
66
+ * @param {?string} id - The id of the Logger instance to find.
67
+ * @returns {boolean} - Boolean value indicating if this instance has a
68
+ * logger with the specified `id`.
69
+ */
70
+ has(id) {
71
+ return !!this.loggers.has(id);
72
+ }
73
+
74
+ /**
75
+ * Closes a `Logger` instance with the specified `id` if it exists.
76
+ * If no `id` is supplied then all Loggers are closed.
77
+ * @param {?string} id - The id of the Logger instance to close.
78
+ * @returns {undefined}
79
+ */
80
+ close(id) {
81
+ if (id) {
82
+ return this._removeLogger(id);
83
+ }
84
+
85
+ this.loggers.forEach((val, key) => this._removeLogger(key));
86
+ }
87
+
88
+ /**
89
+ * Remove a logger based on the id.
90
+ * @param {!string} id - The id of the logger to remove.
91
+ * @returns {undefined}
92
+ * @private
93
+ */
94
+ _removeLogger(id) {
95
+ if (!this.loggers.has(id)) {
96
+ return;
97
+ }
98
+
99
+ const logger = this.loggers.get(id);
100
+ logger.close();
101
+ this._delete(id);
102
+ }
103
+
104
+ /**
105
+ * Deletes a `Logger` instance with the specified `id`.
106
+ * @param {!string} id - The id of the Logger instance to delete from
107
+ * container.
108
+ * @returns {undefined}
109
+ * @private
110
+ */
111
+ _delete(id) {
112
+ this.loggers.delete(id);
113
+ }
114
+ };