ng2-logger 13.1.21 → 13.1.23
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 +192 -192
- package/assets/shared/shared_folder_info.txt +1 -1
- package/browser/README.md +24 -24
- package/browser/esm2020/lib/backend-logging.mjs +93 -93
- package/browser/esm2020/lib/display.mjs +96 -96
- package/browser/esm2020/lib/index.mjs +6 -6
- package/browser/esm2020/lib/level.mjs +32 -32
- package/browser/esm2020/lib/log.mjs +160 -160
- package/browser/esm2020/lib/logger.mjs +237 -237
- package/browser/esm2020/ng2-logger.mjs +4 -4
- package/browser/esm2020/public-api.mjs +1 -1
- package/browser/fesm2015/ng2-logger.mjs +514 -514
- package/browser/fesm2015/ng2-logger.mjs.map +1 -1
- package/browser/fesm2020/ng2-logger.mjs +514 -514
- package/browser/fesm2020/ng2-logger.mjs.map +1 -1
- package/browser/lib/backend-logging.d.ts +3 -3
- package/browser/lib/display.d.ts +3 -3
- package/browser/lib/index.d.ts +3 -3
- package/browser/lib/level.d.ts +20 -20
- package/browser/lib/log.d.ts +24 -24
- package/browser/lib/logger.d.ts +80 -80
- package/browser/ng2-logger.d.ts +4 -4
- package/client/README.md +24 -24
- package/client/esm2020/lib/backend-logging.mjs +93 -93
- package/client/esm2020/lib/display.mjs +96 -96
- package/client/esm2020/lib/index.mjs +6 -6
- package/client/esm2020/lib/level.mjs +32 -32
- package/client/esm2020/lib/log.mjs +160 -160
- package/client/esm2020/lib/logger.mjs +237 -237
- package/client/esm2020/ng2-logger.mjs +4 -4
- package/client/esm2020/public-api.mjs +1 -1
- package/client/fesm2015/ng2-logger.mjs +514 -514
- package/client/fesm2015/ng2-logger.mjs.map +1 -1
- package/client/fesm2020/ng2-logger.mjs +514 -514
- package/client/fesm2020/ng2-logger.mjs.map +1 -1
- package/client/lib/backend-logging.d.ts +3 -3
- package/client/lib/display.d.ts +3 -3
- package/client/lib/index.d.ts +3 -3
- package/client/lib/level.d.ts +20 -20
- package/client/lib/log.d.ts +24 -24
- package/client/lib/logger.d.ts +80 -80
- package/client/ng2-logger.d.ts +4 -4
- package/client/package.json +42 -41
- package/index.d.ts +1 -1
- package/lib/backend-logging.d.ts +4 -4
- package/lib/display.d.ts +4 -4
- package/lib/index.d.ts +4 -4
- package/lib/level.d.ts +21 -21
- package/lib/log.d.ts +25 -25
- package/lib/logger.d.ts +81 -81
- package/lib/logger.js +4 -4
- package/package.json +3 -3
- package/package.json_devDependencies.json +184 -184
- package/package.json_tnp.json5 +51 -51
- package/tmp-environment.json +47 -45
- package/websql/README.md +24 -24
- package/websql/esm2020/lib/backend-logging.mjs +93 -93
- package/websql/esm2020/lib/display.mjs +96 -96
- package/websql/esm2020/lib/index.mjs +6 -6
- package/websql/esm2020/lib/level.mjs +32 -32
- package/websql/esm2020/lib/log.mjs +160 -160
- package/websql/esm2020/lib/logger.mjs +237 -237
- package/websql/esm2020/ng2-logger.mjs +4 -4
- package/websql/esm2020/public-api.mjs +1 -1
- package/websql/fesm2015/ng2-logger.mjs +514 -514
- package/websql/fesm2015/ng2-logger.mjs.map +1 -1
- package/websql/fesm2020/ng2-logger.mjs +514 -514
- package/websql/fesm2020/ng2-logger.mjs.map +1 -1
- package/websql/lib/backend-logging.d.ts +3 -3
- package/websql/lib/display.d.ts +3 -3
- package/websql/lib/index.d.ts +3 -3
- package/websql/lib/level.d.ts +20 -20
- package/websql/lib/log.d.ts +24 -24
- package/websql/lib/logger.d.ts +80 -80
- package/websql/ng2-logger.d.ts +4 -4
package/client/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng2-logger",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.23",
|
|
4
4
|
"description": "isomorphic logger for browser/server in typescript",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,15 +30,16 @@
|
|
|
30
30
|
"json-stringify-safe": "5.0.1",
|
|
31
31
|
"json5": "2.1.3",
|
|
32
32
|
"randomcolor": "0.5.3",
|
|
33
|
-
"tnp-config": "~13.1.
|
|
33
|
+
"tnp-config": "~13.1.74"
|
|
34
34
|
},
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"private": false,
|
|
37
|
-
"lastBuildTagHash": "
|
|
37
|
+
"lastBuildTagHash": "50bf2140c82fcfeb6b791b6d603fa8cbb91ae9b7",
|
|
38
38
|
"peerDependencies": {},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@angular-devkit/build-angular": "~13.3.9",
|
|
41
41
|
"@angular-devkit/core": "~13.3.9",
|
|
42
|
+
"@angular-material-extensions/fab-menu": "~6.1.0",
|
|
42
43
|
"@angular/animations": "~13.3.0",
|
|
43
44
|
"@angular/cdk": "~13.3.9",
|
|
44
45
|
"@angular/cli": "~13.3.9",
|
|
@@ -58,6 +59,11 @@
|
|
|
58
59
|
"@iconify/icons-fa-solid": "1.2.2",
|
|
59
60
|
"@iconify/icons-mdi": "1.2.1",
|
|
60
61
|
"@mdi/js": "6.5.95",
|
|
62
|
+
"@ng-matero/extensions": "13.3.2",
|
|
63
|
+
"@ngneat/falso": "6.4.0",
|
|
64
|
+
"@ngneat/hot-toast": "4",
|
|
65
|
+
"@ngneat/overview": "3.0.0",
|
|
66
|
+
"@ngneat/until-destroy": "9.2.3",
|
|
61
67
|
"@ngrx/component-store": "~13.0.2",
|
|
62
68
|
"@ngrx/data": "~13.0.2",
|
|
63
69
|
"@ngrx/effects": "~13.0.2",
|
|
@@ -66,16 +72,10 @@
|
|
|
66
72
|
"@ngrx/schematics": "~13.0.2",
|
|
67
73
|
"@ngrx/store": "~13.0.2",
|
|
68
74
|
"@ngrx/store-devtools": "~13.0.2",
|
|
69
|
-
"@ngx-formly/bootstrap": "6.0.0-next.8",
|
|
70
75
|
"@ngx-formly/core": "6.0.0-next.8",
|
|
71
|
-
"@ngx-formly/ionic": "4.6.3",
|
|
72
76
|
"@ngx-formly/material": "6.0.0-next.8",
|
|
73
|
-
"@ngx-loading-bar/core": "6.0.2",
|
|
74
|
-
"@ngx-loading-bar/http-client": "6.0.2",
|
|
75
|
-
"@ngx-loading-bar/router": "6.0.2",
|
|
76
77
|
"@ngx-translate/core": "14.0.0",
|
|
77
78
|
"@ngx-translate/http-loader": "7.0.0",
|
|
78
|
-
"@swimlane/ngx-datatable": "20.0.0",
|
|
79
79
|
"@types/chai": "4.1.2",
|
|
80
80
|
"@types/chokidar": "2.1.3",
|
|
81
81
|
"@types/dateformat": "1.0.1",
|
|
@@ -106,9 +106,10 @@
|
|
|
106
106
|
"@types/vinyl": "2.0.2",
|
|
107
107
|
"@types/watch": "1.0.0",
|
|
108
108
|
"accepts": "1.3.4",
|
|
109
|
-
"
|
|
109
|
+
"angular-material-css-vars": "5.0.0",
|
|
110
|
+
"any-project-cli": "~13.1.25",
|
|
110
111
|
"axios": "1.3.5",
|
|
111
|
-
"background-worker-process": "~13.1.
|
|
112
|
+
"background-worker-process": "~13.1.42",
|
|
112
113
|
"base32": "0.0.7",
|
|
113
114
|
"bcryptjs": "2.4.3",
|
|
114
115
|
"better-sqlite3": "7.6.2",
|
|
@@ -121,6 +122,7 @@
|
|
|
121
122
|
"cheerio": "1.0.0-rc.3",
|
|
122
123
|
"chokidar": "3.5.1",
|
|
123
124
|
"circular-json": "0.5.1",
|
|
125
|
+
"class-validator": "0.14.0",
|
|
124
126
|
"command-exists": "1.2.2",
|
|
125
127
|
"compression": "1.7.4",
|
|
126
128
|
"concurrently": "3.5.1",
|
|
@@ -144,16 +146,15 @@
|
|
|
144
146
|
"express": "4.16.3",
|
|
145
147
|
"express-fileupload": "1.4.0",
|
|
146
148
|
"express-session": "1.17.3",
|
|
147
|
-
"fbgraph": "1.4.1",
|
|
148
149
|
"file-loader": "1.1.5",
|
|
149
150
|
"file-saver": "2.0.5",
|
|
150
151
|
"firedev": "^13",
|
|
151
|
-
"firedev-crud": "~13.1.
|
|
152
|
-
"firedev-crud-deamon": "~13.1.
|
|
153
|
-
"firedev-ports": "~13.1.
|
|
154
|
-
"firedev-storage": "~13.
|
|
155
|
-
"firedev-typeorm": "~13.1.
|
|
156
|
-
"firedev-ui": "~13.1.
|
|
152
|
+
"firedev-crud": "~13.1.47",
|
|
153
|
+
"firedev-crud-deamon": "~13.1.37",
|
|
154
|
+
"firedev-ports": "~13.1.41",
|
|
155
|
+
"firedev-storage": "~13.2.34",
|
|
156
|
+
"firedev-typeorm": "~13.1.29",
|
|
157
|
+
"firedev-ui": "~13.1.20",
|
|
157
158
|
"fkill": "6.1.0",
|
|
158
159
|
"font-awesome": "4.7.0",
|
|
159
160
|
"form-data": "4.0.0",
|
|
@@ -162,20 +163,22 @@
|
|
|
162
163
|
"glob": "7.1.2",
|
|
163
164
|
"gulp": "3.9.1",
|
|
164
165
|
"hostile": "1.3.3",
|
|
166
|
+
"howler": "2.2.3",
|
|
165
167
|
"http-proxy": "1.16.2",
|
|
166
168
|
"http-proxy-middleware": "0.19.1",
|
|
167
169
|
"http-server": "0.11.1",
|
|
168
170
|
"immutable": "4.3.0",
|
|
169
|
-
"incremental-compiler": "~13.1.
|
|
171
|
+
"incremental-compiler": "~13.1.23",
|
|
170
172
|
"inquirer": "7.3.3",
|
|
171
173
|
"inquirer-autocomplete-prompt": "1.3.0",
|
|
172
174
|
"is-elevated": "3.0.0",
|
|
173
|
-
"isomorphic-region-loader": "~13.1.
|
|
175
|
+
"isomorphic-region-loader": "~13.1.35",
|
|
174
176
|
"istanbul-instrumenter-loader": "2.0.0",
|
|
175
177
|
"jasmine-core": "4.0.0",
|
|
178
|
+
"jimp": "0.22.8",
|
|
176
179
|
"jscodeshift": "0.6.3",
|
|
177
|
-
"json10": "~13.1.
|
|
178
|
-
"json10-writer": "~13.1.
|
|
180
|
+
"json10": "~13.1.42",
|
|
181
|
+
"json10-writer": "~13.1.38",
|
|
179
182
|
"json5-writer": "0.2.0",
|
|
180
183
|
"jszip": "3.10.1",
|
|
181
184
|
"karma": "6.3.0",
|
|
@@ -188,25 +191,22 @@
|
|
|
188
191
|
"localforage": "1.10.0",
|
|
189
192
|
"lockfile": "1.0.4",
|
|
190
193
|
"lodash": "4.17.4",
|
|
191
|
-
"lodash-walk-object": "~13.1.
|
|
194
|
+
"lodash-walk-object": "~13.1.42",
|
|
192
195
|
"lowdb": "1.0.0",
|
|
193
|
-
"magic-renamer": "~13.1.
|
|
196
|
+
"magic-renamer": "~13.1.39",
|
|
194
197
|
"material-design-icons": "3.0.1",
|
|
195
198
|
"method-override": "2.3.10",
|
|
196
199
|
"minimist": "1.2.0",
|
|
197
200
|
"mkdirp": "0.5.1",
|
|
198
201
|
"mocha": "5.2.0",
|
|
199
202
|
"moment": "2.22.2",
|
|
200
|
-
"morphi": "~13.2.
|
|
203
|
+
"morphi": "~13.2.5",
|
|
204
|
+
"ng-in-viewport": "13.0.1",
|
|
201
205
|
"ng-packagr": "13.0.0",
|
|
202
206
|
"ng-talkback": "~13.1.19",
|
|
203
|
-
"ng2-
|
|
204
|
-
"ng2-
|
|
205
|
-
"ng2-rest": "~13.2.4",
|
|
206
|
-
"ng4-icons": "~13.1.21",
|
|
207
|
-
"ng4-modal": "~13.1.23",
|
|
207
|
+
"ng2-logger": "~13.1.22",
|
|
208
|
+
"ng2-rest": "~13.2.6",
|
|
208
209
|
"ngx-ace-wrapper": "12",
|
|
209
|
-
"ngx-bootstrap": "2.0.2",
|
|
210
210
|
"ngx-editor": "12.2.1",
|
|
211
211
|
"ngx-highlightjs": "6.1.3",
|
|
212
212
|
"ngx-moment": "6.0.2",
|
|
@@ -214,8 +214,7 @@
|
|
|
214
214
|
"ngx-progressbar": "8.0.0",
|
|
215
215
|
"ngx-scrollbar": "9.0.2",
|
|
216
216
|
"ngx-store": "3.1.1",
|
|
217
|
-
"ngx-
|
|
218
|
-
"ngx-wig": "1.2.7",
|
|
217
|
+
"ngx-typed-js": "2.1.1",
|
|
219
218
|
"node-cli-tester": "~13.1.19",
|
|
220
219
|
"node-localstorage": "2.1.6",
|
|
221
220
|
"node-notifier": "6.0.0",
|
|
@@ -228,6 +227,7 @@
|
|
|
228
227
|
"passport": "0.3.2",
|
|
229
228
|
"passport-http-bearer": "1.0.1",
|
|
230
229
|
"password-hash": "1.2.2",
|
|
230
|
+
"pica": "9.0.1",
|
|
231
231
|
"portfinder": "1.0.21",
|
|
232
232
|
"prettier": "2.5.1",
|
|
233
233
|
"progress": "2.0.3",
|
|
@@ -245,16 +245,16 @@
|
|
|
245
245
|
"socket.io": "2.4.1",
|
|
246
246
|
"sort-package-json": "1.11.0",
|
|
247
247
|
"sql.js": "1.8.0",
|
|
248
|
-
"static-columns": "~13.3.
|
|
248
|
+
"static-columns": "~13.3.6",
|
|
249
249
|
"string-similarity": "4.0.2",
|
|
250
250
|
"sudo-block": "3.0.0",
|
|
251
251
|
"systeminformation": "3.45.7",
|
|
252
|
-
"
|
|
253
|
-
"tnp-cli": "~13.1.
|
|
254
|
-
"tnp-core": "~13.2.
|
|
255
|
-
"tnp-db": "~13.1.
|
|
256
|
-
"tnp-helpers": "~13.1.
|
|
257
|
-
"tnp-models": "~13.1.
|
|
252
|
+
"threads": "1.7.0",
|
|
253
|
+
"tnp-cli": "~13.1.57",
|
|
254
|
+
"tnp-core": "~13.2.18",
|
|
255
|
+
"tnp-db": "~13.1.19",
|
|
256
|
+
"tnp-helpers": "~13.1.32",
|
|
257
|
+
"tnp-models": "~13.1.25",
|
|
258
258
|
"tnp-ui": "~13.1.27",
|
|
259
259
|
"ts-debug": "1.3.0",
|
|
260
260
|
"ts-loader": "2.3.1",
|
|
@@ -262,11 +262,12 @@
|
|
|
262
262
|
"tslib": "~2.3.0",
|
|
263
263
|
"typeorm": "~0.3.10",
|
|
264
264
|
"typescript": "~4.6.2",
|
|
265
|
-
"typescript-class-helpers": "~13.2.
|
|
265
|
+
"typescript-class-helpers": "~13.2.10",
|
|
266
266
|
"typescript-formatter": "~7.2.2",
|
|
267
267
|
"underscore": "1.9.1",
|
|
268
268
|
"uuid": "8.3.2",
|
|
269
269
|
"validator": "9.2.0",
|
|
270
|
+
"video.js": "8.3.0",
|
|
270
271
|
"vpn-split": "~13.1.23",
|
|
271
272
|
"watch": "1.0.2",
|
|
272
273
|
"yup": "1.1.1",
|
package/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './lib';
|
|
1
|
+
export * from './lib';
|
package/lib/backend-logging.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Level } from './level';
|
|
2
|
-
export declare function consoleLog(data: string, level: Level): void;
|
|
3
|
-
export declare function displayParams(params: any[], level: Level): void;
|
|
4
|
-
export declare function istartedInVscode(): any;
|
|
1
|
+
import { Level } from './level';
|
|
2
|
+
export declare function consoleLog(data: string, level: Level): void;
|
|
3
|
+
export declare function displayParams(params: any[], level: Level): void;
|
|
4
|
+
export declare function istartedInVscode(): any;
|
package/lib/display.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Level } from './level';
|
|
2
|
-
export declare class Display {
|
|
3
|
-
static msg(message: string | any, params: any[], moduleName: string, moduleColor: string, level: Level, moduleWidth: number | undefined, isProductionMode: boolean): void;
|
|
4
|
-
}
|
|
1
|
+
import { Level } from './level';
|
|
2
|
+
export declare class Display {
|
|
3
|
+
static msg(message: string | any, params: any[], moduleName: string, moduleColor: string, level: Level, moduleWidth: number | undefined, isProductionMode: boolean): void;
|
|
4
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './log';
|
|
2
|
-
export * from './level';
|
|
3
|
-
export * from './logger';
|
|
4
|
-
export * from './display';
|
|
1
|
+
export * from './log';
|
|
2
|
+
export * from './level';
|
|
3
|
+
export * from './logger';
|
|
4
|
+
export * from './display';
|
package/lib/level.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export declare enum Level {
|
|
2
|
-
DATA = 0,
|
|
3
|
-
INFO = 1,
|
|
4
|
-
WARN = 2,
|
|
5
|
-
ERROR = 3,
|
|
6
|
-
SUCCESS = 4,
|
|
7
|
-
TASK_STARTED = 5,
|
|
8
|
-
TASK_DONE = 6,
|
|
9
|
-
__NOTHING = 7
|
|
10
|
-
}
|
|
11
|
-
export declare const LevelKey: {
|
|
12
|
-
0: string;
|
|
13
|
-
1: string;
|
|
14
|
-
2: string;
|
|
15
|
-
3: string;
|
|
16
|
-
4: string;
|
|
17
|
-
5: string;
|
|
18
|
-
6: string;
|
|
19
|
-
7: string;
|
|
20
|
-
};
|
|
21
|
-
export declare const LevelOrder: string[];
|
|
1
|
+
export declare enum Level {
|
|
2
|
+
DATA = 0,
|
|
3
|
+
INFO = 1,
|
|
4
|
+
WARN = 2,
|
|
5
|
+
ERROR = 3,
|
|
6
|
+
SUCCESS = 4,
|
|
7
|
+
TASK_STARTED = 5,
|
|
8
|
+
TASK_DONE = 6,
|
|
9
|
+
__NOTHING = 7
|
|
10
|
+
}
|
|
11
|
+
export declare const LevelKey: {
|
|
12
|
+
0: string;
|
|
13
|
+
1: string;
|
|
14
|
+
2: string;
|
|
15
|
+
3: string;
|
|
16
|
+
4: string;
|
|
17
|
+
5: string;
|
|
18
|
+
6: string;
|
|
19
|
+
7: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const LevelOrder: string[];
|
package/lib/log.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { Logger } from './logger';
|
|
2
|
-
import { Level } from './level';
|
|
3
|
-
export declare class Log {
|
|
4
|
-
private constructor();
|
|
5
|
-
private static get instance();
|
|
6
|
-
static Logger: (typeof Logger);
|
|
7
|
-
static create(name: string, ...level: Level[]): Logger;
|
|
8
|
-
private static readonly consolelogfn;
|
|
9
|
-
static disableLogs(level?: Level): void;
|
|
10
|
-
static enableLogs(): void;
|
|
11
|
-
private _logOnly;
|
|
12
|
-
private _logModules;
|
|
13
|
-
private isDevelopmentMode;
|
|
14
|
-
private modeIsSet;
|
|
15
|
-
private fixedWidth;
|
|
16
|
-
private instances;
|
|
17
|
-
private levels;
|
|
18
|
-
private modules;
|
|
19
|
-
setProductionMode(): void;
|
|
20
|
-
onlyModules(...modules: (string | RegExp)[]): void;
|
|
21
|
-
onlyLevel(...level: Level[]): void;
|
|
22
|
-
private create;
|
|
23
|
-
private isMutedModule;
|
|
24
|
-
private muteAllOtherModules;
|
|
25
|
-
}
|
|
1
|
+
import { Logger } from './logger';
|
|
2
|
+
import { Level } from './level';
|
|
3
|
+
export declare class Log {
|
|
4
|
+
private constructor();
|
|
5
|
+
private static get instance();
|
|
6
|
+
static Logger: (typeof Logger);
|
|
7
|
+
static create(name: string, ...level: Level[]): Logger;
|
|
8
|
+
private static readonly consolelogfn;
|
|
9
|
+
static disableLogs(level?: Level): void;
|
|
10
|
+
static enableLogs(): void;
|
|
11
|
+
private _logOnly;
|
|
12
|
+
private _logModules;
|
|
13
|
+
private isDevelopmentMode;
|
|
14
|
+
private modeIsSet;
|
|
15
|
+
private fixedWidth;
|
|
16
|
+
private instances;
|
|
17
|
+
private levels;
|
|
18
|
+
private modules;
|
|
19
|
+
setProductionMode(): void;
|
|
20
|
+
onlyModules(...modules: (string | RegExp)[]): void;
|
|
21
|
+
onlyLevel(...level: Level[]): void;
|
|
22
|
+
private create;
|
|
23
|
+
private isMutedModule;
|
|
24
|
+
private muteAllOtherModules;
|
|
25
|
+
}
|
package/lib/logger.d.ts
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
import { Level } from './level';
|
|
2
|
-
export declare class Logger {
|
|
3
|
-
private name;
|
|
4
|
-
color: string;
|
|
5
|
-
private developmentMode;
|
|
6
|
-
private allowed;
|
|
7
|
-
private isMuted;
|
|
8
|
-
fixedWidth: number | undefined;
|
|
9
|
-
private _level;
|
|
10
|
-
setLevel(l: Level): this;
|
|
11
|
-
get isProductionMode(): boolean;
|
|
12
|
-
setProductionMode(productionMode: boolean): this;
|
|
13
|
-
mute(): this;
|
|
14
|
-
constructor(name: string, color: string, developmentMode: boolean, allowed: Level[], isMuted: boolean, fixedWidth: number | undefined);
|
|
15
|
-
onlyWhen(expression: (() => boolean) | boolean): void;
|
|
16
|
-
private _data;
|
|
17
|
-
private _error;
|
|
18
|
-
private _info;
|
|
19
|
-
private _success;
|
|
20
|
-
private _taskStarted;
|
|
21
|
-
private _taskDone;
|
|
22
|
-
private _warn;
|
|
23
|
-
/**
|
|
24
|
-
* @see data
|
|
25
|
-
*/
|
|
26
|
-
d: (name: string | any, ...data: any[]) => this;
|
|
27
|
-
/**
|
|
28
|
-
* @see error
|
|
29
|
-
*/
|
|
30
|
-
er: (name: string | any, ...data: any[]) => this;
|
|
31
|
-
/**
|
|
32
|
-
* @see info
|
|
33
|
-
*/
|
|
34
|
-
i: (name: string | any, ...data: any[]) => this;
|
|
35
|
-
/**
|
|
36
|
-
* @see warn
|
|
37
|
-
*/
|
|
38
|
-
w: (name: string | any, ...data: any[]) => this;
|
|
39
|
-
/**
|
|
40
|
-
* Logs message and data with the level=data
|
|
41
|
-
* @param message The message
|
|
42
|
-
* @param otherParams Additional parameters
|
|
43
|
-
*/
|
|
44
|
-
data: (message: string, ...otherParams: any[]) => this;
|
|
45
|
-
/**
|
|
46
|
-
* Logs message and data with the level=error
|
|
47
|
-
* @param message The message
|
|
48
|
-
* @param otherParams Additional parameters
|
|
49
|
-
*/
|
|
50
|
-
error: (message: string, ...otherParams: any[]) => this;
|
|
51
|
-
/**
|
|
52
|
-
* Logs message and data with the level=info
|
|
53
|
-
* @param message The message
|
|
54
|
-
* @param otherParams Additional parameters
|
|
55
|
-
*/
|
|
56
|
-
info: (message: string, ...otherParams: any[]) => this;
|
|
57
|
-
/**
|
|
58
|
-
* Logs message and data with the level=success
|
|
59
|
-
* @param message The message
|
|
60
|
-
* @param otherParams Additional parameters
|
|
61
|
-
*/
|
|
62
|
-
success: (message: string, ...otherParams: any[]) => this;
|
|
63
|
-
/**
|
|
64
|
-
* Logs message and data with the level=taskStarted
|
|
65
|
-
* @param message The message
|
|
66
|
-
* @param otherParams Additional parameters
|
|
67
|
-
*/
|
|
68
|
-
taskStarted: (message: string, ...otherParams: any[]) => this;
|
|
69
|
-
/**
|
|
70
|
-
* Logs message and data with the level=taskDone
|
|
71
|
-
* @param message The message
|
|
72
|
-
* @param otherParams Additional parameters
|
|
73
|
-
*/
|
|
74
|
-
taskDone: (message?: string, ...otherParams: any[]) => this;
|
|
75
|
-
/**
|
|
76
|
-
* Logs message and data with the level=warn
|
|
77
|
-
* @param message The message
|
|
78
|
-
* @param otherParams Additional parameters
|
|
79
|
-
*/
|
|
80
|
-
warn: (message: string, ...otherParams: any[]) => this;
|
|
81
|
-
}
|
|
1
|
+
import { Level } from './level';
|
|
2
|
+
export declare class Logger {
|
|
3
|
+
private name;
|
|
4
|
+
color: string;
|
|
5
|
+
private developmentMode;
|
|
6
|
+
private allowed;
|
|
7
|
+
private isMuted;
|
|
8
|
+
fixedWidth: number | undefined;
|
|
9
|
+
private _level;
|
|
10
|
+
setLevel(l: Level): this;
|
|
11
|
+
get isProductionMode(): boolean;
|
|
12
|
+
setProductionMode(productionMode: boolean): this;
|
|
13
|
+
mute(): this;
|
|
14
|
+
constructor(name: string, color: string, developmentMode: boolean, allowed: Level[], isMuted: boolean, fixedWidth: number | undefined);
|
|
15
|
+
onlyWhen(expression: (() => boolean) | boolean): void;
|
|
16
|
+
private _data;
|
|
17
|
+
private _error;
|
|
18
|
+
private _info;
|
|
19
|
+
private _success;
|
|
20
|
+
private _taskStarted;
|
|
21
|
+
private _taskDone;
|
|
22
|
+
private _warn;
|
|
23
|
+
/**
|
|
24
|
+
* @see data
|
|
25
|
+
*/
|
|
26
|
+
d: (name: string | any, ...data: any[]) => this;
|
|
27
|
+
/**
|
|
28
|
+
* @see error
|
|
29
|
+
*/
|
|
30
|
+
er: (name: string | any, ...data: any[]) => this;
|
|
31
|
+
/**
|
|
32
|
+
* @see info
|
|
33
|
+
*/
|
|
34
|
+
i: (name: string | any, ...data: any[]) => this;
|
|
35
|
+
/**
|
|
36
|
+
* @see warn
|
|
37
|
+
*/
|
|
38
|
+
w: (name: string | any, ...data: any[]) => this;
|
|
39
|
+
/**
|
|
40
|
+
* Logs message and data with the level=data
|
|
41
|
+
* @param message The message
|
|
42
|
+
* @param otherParams Additional parameters
|
|
43
|
+
*/
|
|
44
|
+
data: (message: string, ...otherParams: any[]) => this;
|
|
45
|
+
/**
|
|
46
|
+
* Logs message and data with the level=error
|
|
47
|
+
* @param message The message
|
|
48
|
+
* @param otherParams Additional parameters
|
|
49
|
+
*/
|
|
50
|
+
error: (message: string, ...otherParams: any[]) => this;
|
|
51
|
+
/**
|
|
52
|
+
* Logs message and data with the level=info
|
|
53
|
+
* @param message The message
|
|
54
|
+
* @param otherParams Additional parameters
|
|
55
|
+
*/
|
|
56
|
+
info: (message: string, ...otherParams: any[]) => this;
|
|
57
|
+
/**
|
|
58
|
+
* Logs message and data with the level=success
|
|
59
|
+
* @param message The message
|
|
60
|
+
* @param otherParams Additional parameters
|
|
61
|
+
*/
|
|
62
|
+
success: (message: string, ...otherParams: any[]) => this;
|
|
63
|
+
/**
|
|
64
|
+
* Logs message and data with the level=taskStarted
|
|
65
|
+
* @param message The message
|
|
66
|
+
* @param otherParams Additional parameters
|
|
67
|
+
*/
|
|
68
|
+
taskStarted: (message: string, ...otherParams: any[]) => this;
|
|
69
|
+
/**
|
|
70
|
+
* Logs message and data with the level=taskDone
|
|
71
|
+
* @param message The message
|
|
72
|
+
* @param otherParams Additional parameters
|
|
73
|
+
*/
|
|
74
|
+
taskDone: (message?: string, ...otherParams: any[]) => this;
|
|
75
|
+
/**
|
|
76
|
+
* Logs message and data with the level=warn
|
|
77
|
+
* @param message The message
|
|
78
|
+
* @param otherParams Additional parameters
|
|
79
|
+
*/
|
|
80
|
+
warn: (message: string, ...otherParams: any[]) => this;
|
|
81
|
+
}
|
package/lib/logger.js
CHANGED
|
@@ -14,7 +14,7 @@ var Logger = /** @class */ (function () {
|
|
|
14
14
|
this.allowed = allowed;
|
|
15
15
|
this.isMuted = isMuted;
|
|
16
16
|
this.fixedWidth = fixedWidth;
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
18
|
* @see data
|
|
19
19
|
*/
|
|
20
20
|
this.d = function (name) {
|
|
@@ -24,7 +24,7 @@ var Logger = /** @class */ (function () {
|
|
|
24
24
|
}
|
|
25
25
|
return _this._data(name, data);
|
|
26
26
|
};
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
28
|
* @see error
|
|
29
29
|
*/
|
|
30
30
|
this.er = function (name) {
|
|
@@ -34,7 +34,7 @@ var Logger = /** @class */ (function () {
|
|
|
34
34
|
}
|
|
35
35
|
return _this._error(name, data);
|
|
36
36
|
};
|
|
37
|
-
/**
|
|
37
|
+
/**
|
|
38
38
|
* @see info
|
|
39
39
|
*/
|
|
40
40
|
this.i = function (name) {
|
|
@@ -44,7 +44,7 @@ var Logger = /** @class */ (function () {
|
|
|
44
44
|
}
|
|
45
45
|
return _this._info(name, data);
|
|
46
46
|
};
|
|
47
|
-
/**
|
|
47
|
+
/**
|
|
48
48
|
* @see warn
|
|
49
49
|
*/
|
|
50
50
|
this.w = function (name) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng2-logger",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.23",
|
|
4
4
|
"description": "isomorphic logger for browser/server in typescript",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"json-stringify-safe": "5.0.1",
|
|
31
31
|
"json5": "2.1.3",
|
|
32
32
|
"randomcolor": "0.5.3",
|
|
33
|
-
"tnp-config": "~13.1.
|
|
33
|
+
"tnp-config": "~13.1.74"
|
|
34
34
|
},
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"private": false,
|
|
37
|
-
"lastBuildTagHash": "
|
|
37
|
+
"lastBuildTagHash": "50bf2140c82fcfeb6b791b6d603fa8cbb91ae9b7",
|
|
38
38
|
"peerDependencies": {},
|
|
39
39
|
"devDependencies": {}
|
|
40
40
|
}
|