ng2-logger 13.1.19 → 13.1.21

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 (84) hide show
  1. package/README.md +192 -192
  2. package/assets/shared/shared_folder_info.txt +7 -0
  3. package/browser/README.md +24 -24
  4. package/browser/esm2020/lib/backend-logging.mjs +93 -93
  5. package/browser/esm2020/lib/display.mjs +96 -96
  6. package/browser/esm2020/lib/index.mjs +6 -6
  7. package/browser/esm2020/lib/level.mjs +32 -32
  8. package/browser/esm2020/lib/log.mjs +160 -160
  9. package/browser/esm2020/lib/logger.mjs +236 -236
  10. package/browser/esm2020/ng2-logger.mjs +4 -4
  11. package/browser/esm2020/public-api.mjs +1 -1
  12. package/browser/fesm2015/ng2-logger.mjs +514 -514
  13. package/browser/fesm2020/ng2-logger.mjs +514 -514
  14. package/browser/lib/backend-logging.d.ts +3 -3
  15. package/browser/lib/display.d.ts +3 -3
  16. package/browser/lib/index.d.ts +3 -3
  17. package/browser/lib/level.d.ts +20 -20
  18. package/browser/lib/log.d.ts +24 -24
  19. package/browser/lib/logger.d.ts +80 -80
  20. package/browser/ng2-logger.d.ts +4 -4
  21. package/client/README.md +24 -24
  22. package/client/esm2020/lib/backend-logging.mjs +93 -93
  23. package/client/esm2020/lib/display.mjs +96 -96
  24. package/client/esm2020/lib/index.mjs +6 -6
  25. package/client/esm2020/lib/level.mjs +32 -32
  26. package/client/esm2020/lib/log.mjs +160 -160
  27. package/client/esm2020/lib/logger.mjs +236 -236
  28. package/client/esm2020/ng2-logger.mjs +4 -4
  29. package/client/esm2020/public-api.mjs +1 -1
  30. package/client/fesm2015/ng2-logger.mjs +514 -514
  31. package/client/fesm2020/ng2-logger.mjs +514 -514
  32. package/client/lib/backend-logging.d.ts +3 -3
  33. package/client/lib/display.d.ts +3 -3
  34. package/client/lib/index.d.ts +3 -3
  35. package/client/lib/level.d.ts +20 -20
  36. package/client/lib/log.d.ts +24 -24
  37. package/client/lib/logger.d.ts +80 -80
  38. package/client/ng2-logger.d.ts +4 -4
  39. package/client/package.json +269 -25
  40. package/index.d.ts +1 -1
  41. package/index.js.map +1 -1
  42. package/lib/backend-logging.d.ts +4 -4
  43. package/lib/backend-logging.js.map +1 -1
  44. package/lib/display.d.ts +4 -4
  45. package/lib/display.js.map +1 -1
  46. package/lib/index.d.ts +4 -4
  47. package/lib/index.js.map +1 -1
  48. package/lib/level.d.ts +21 -21
  49. package/lib/level.js.map +1 -1
  50. package/lib/log.d.ts +25 -25
  51. package/lib/log.js.map +1 -1
  52. package/lib/logger.d.ts +81 -81
  53. package/lib/logger.js.map +1 -1
  54. package/package.json +4 -4
  55. package/package.json_devDependencies.json +184 -184
  56. package/package.json_tnp.json5 +51 -51
  57. package/tmp-environment.json +36 -36
  58. package/websql/README.md +24 -24
  59. package/websql/esm2020/lib/backend-logging.mjs +93 -93
  60. package/websql/esm2020/lib/display.mjs +96 -96
  61. package/websql/esm2020/lib/index.mjs +6 -6
  62. package/websql/esm2020/lib/level.mjs +32 -32
  63. package/websql/esm2020/lib/log.mjs +160 -160
  64. package/websql/esm2020/lib/logger.mjs +236 -236
  65. package/websql/esm2020/ng2-logger.mjs +4 -4
  66. package/websql/esm2020/public-api.mjs +1 -1
  67. package/websql/fesm2015/ng2-logger.mjs +514 -514
  68. package/websql/fesm2020/ng2-logger.mjs +514 -514
  69. package/websql/lib/backend-logging.d.ts +3 -3
  70. package/websql/lib/display.d.ts +3 -3
  71. package/websql/lib/index.d.ts +3 -3
  72. package/websql/lib/level.d.ts +20 -20
  73. package/websql/lib/log.d.ts +24 -24
  74. package/websql/lib/logger.d.ts +80 -80
  75. package/websql/ng2-logger.d.ts +4 -4
  76. package/app/index.d.ts +0 -4
  77. package/app/index.js +0 -19
  78. package/app/index.js.map +0 -1
  79. package/app/ng2-logger.component.d.ts +0 -5
  80. package/app/ng2-logger.component.js +0 -33
  81. package/app/ng2-logger.component.js.map +0 -1
  82. package/app/ng2-logger.module.d.ts +0 -2
  83. package/app/ng2-logger.module.js +0 -30
  84. package/app/ng2-logger.module.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  // @ts-nocheck
2
- import { Level } from './level';
3
- export declare function consoleLog(data: string, level: Level): void;
4
- export declare function displayParams(params: any[], level: Level): void;
2
+ import { Level } from './level';
3
+ export declare function consoleLog(data: string, level: Level): void;
4
+ export declare function displayParams(params: any[], level: Level): void;
5
5
  export declare function istartedInVscode(): void;
@@ -1,5 +1,5 @@
1
1
  // @ts-nocheck
2
- import { Level } from './level';
3
- export declare class Display {
4
- static msg(message: string | any, params: any[], moduleName: string, moduleColor: string, level: Level, moduleWidth: number | undefined, isProductionMode: boolean): void;
2
+ import { Level } from './level';
3
+ export declare class Display {
4
+ static msg(message: string | any, params: any[], moduleName: string, moduleColor: string, level: Level, moduleWidth: number | undefined, isProductionMode: boolean): void;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  // @ts-nocheck
2
- export * from './log';
3
- export * from './level';
4
- export * from './logger';
2
+ export * from './log';
3
+ export * from './level';
4
+ export * from './logger';
5
5
  export * from './display';
@@ -1,22 +1,22 @@
1
1
  // @ts-nocheck
2
- export declare enum Level {
3
- DATA = 0,
4
- INFO = 1,
5
- WARN = 2,
6
- ERROR = 3,
7
- SUCCESS = 4,
8
- TASK_STARTED = 5,
9
- TASK_DONE = 6,
10
- __NOTHING = 7
11
- }
12
- export declare const LevelKey: {
13
- 0: string;
14
- 1: string;
15
- 2: string;
16
- 3: string;
17
- 4: string;
18
- 5: string;
19
- 6: string;
20
- 7: string;
21
- };
2
+ export declare enum Level {
3
+ DATA = 0,
4
+ INFO = 1,
5
+ WARN = 2,
6
+ ERROR = 3,
7
+ SUCCESS = 4,
8
+ TASK_STARTED = 5,
9
+ TASK_DONE = 6,
10
+ __NOTHING = 7
11
+ }
12
+ export declare const LevelKey: {
13
+ 0: string;
14
+ 1: string;
15
+ 2: string;
16
+ 3: string;
17
+ 4: string;
18
+ 5: string;
19
+ 6: string;
20
+ 7: string;
21
+ };
22
22
  export declare const LevelOrder: string[];
@@ -1,26 +1,26 @@
1
1
  // @ts-nocheck
2
- import { Logger } from './logger';
3
- import { Level } from './level';
4
- export declare class Log {
5
- private constructor();
6
- private static get instance();
7
- static Logger: (typeof Logger);
8
- static create(name: string, ...level: Level[]): Logger;
9
- private static readonly consolelogfn;
10
- static disableLogs(level?: Level): void;
11
- static enableLogs(): void;
12
- private _logOnly;
13
- private _logModules;
14
- private isDevelopmentMode;
15
- private modeIsSet;
16
- private fixedWidth;
17
- private instances;
18
- private levels;
19
- private modules;
20
- setProductionMode(): void;
21
- onlyModules(...modules: (string | RegExp)[]): void;
22
- onlyLevel(...level: Level[]): void;
23
- private create;
24
- private isMutedModule;
25
- private muteAllOtherModules;
2
+ import { Logger } from './logger';
3
+ import { Level } from './level';
4
+ export declare class Log {
5
+ private constructor();
6
+ private static get instance();
7
+ static Logger: (typeof Logger);
8
+ static create(name: string, ...level: Level[]): Logger;
9
+ private static readonly consolelogfn;
10
+ static disableLogs(level?: Level): void;
11
+ static enableLogs(): void;
12
+ private _logOnly;
13
+ private _logModules;
14
+ private isDevelopmentMode;
15
+ private modeIsSet;
16
+ private fixedWidth;
17
+ private instances;
18
+ private levels;
19
+ private modules;
20
+ setProductionMode(): void;
21
+ onlyModules(...modules: (string | RegExp)[]): void;
22
+ onlyLevel(...level: Level[]): void;
23
+ private create;
24
+ private isMutedModule;
25
+ private muteAllOtherModules;
26
26
  }
@@ -1,82 +1,82 @@
1
1
  // @ts-nocheck
2
- import { Level } from './level';
3
- export declare class Logger {
4
- private name;
5
- color: string;
6
- private developmentMode;
7
- private allowed;
8
- private isMuted;
9
- fixedWidth: number | undefined;
10
- private _level;
11
- setLevel(l: Level): this;
12
- get isProductionMode(): boolean;
13
- setProductionMode(productionMode: boolean): this;
14
- mute(): this;
15
- constructor(name: string, color: string, developmentMode: boolean, allowed: Level[], isMuted: boolean, fixedWidth: number | undefined);
16
- onlyWhen(expression: (() => boolean) | boolean): void;
17
- private _data;
18
- private _error;
19
- private _info;
20
- private _success;
21
- private _taskStarted;
22
- private _taskDone;
23
- private _warn;
24
- /** @deprecated Use data(...)
25
- * @see data
26
- */
27
- d: (name: string | any, ...data: any[]) => this;
28
- /** @deprecated Use error(...)
29
- * @see error
30
- */
31
- er: (name: string | any, ...data: any[]) => this;
32
- /** @deprecated Use info(...)
33
- * @see info
34
- */
35
- i: (name: string | any, ...data: any[]) => this;
36
- /** @deprecated Use warn(...)
37
- * @see warn
38
- */
39
- w: (name: string | any, ...data: any[]) => this;
40
- /**
41
- * Logs message and data with the level=data
42
- * @param message The message
43
- * @param otherParams Additional parameters
44
- */
45
- data: (message: string, ...otherParams: any[]) => this;
46
- /**
47
- * Logs message and data with the level=error
48
- * @param message The message
49
- * @param otherParams Additional parameters
50
- */
51
- error: (message: string, ...otherParams: any[]) => this;
52
- /**
53
- * Logs message and data with the level=info
54
- * @param message The message
55
- * @param otherParams Additional parameters
56
- */
57
- info: (message: string, ...otherParams: any[]) => this;
58
- /**
59
- * Logs message and data with the level=success
60
- * @param message The message
61
- * @param otherParams Additional parameters
62
- */
63
- success: (message: string, ...otherParams: any[]) => this;
64
- /**
65
- * Logs message and data with the level=taskStarted
66
- * @param message The message
67
- * @param otherParams Additional parameters
68
- */
69
- taskStarted: (message: string, ...otherParams: any[]) => this;
70
- /**
71
- * Logs message and data with the level=taskDone
72
- * @param message The message
73
- * @param otherParams Additional parameters
74
- */
75
- taskDone: (message?: string, ...otherParams: any[]) => this;
76
- /**
77
- * Logs message and data with the level=warn
78
- * @param message The message
79
- * @param otherParams Additional parameters
80
- */
81
- warn: (message: string, ...otherParams: any[]) => this;
2
+ import { Level } from './level';
3
+ export declare class Logger {
4
+ private name;
5
+ color: string;
6
+ private developmentMode;
7
+ private allowed;
8
+ private isMuted;
9
+ fixedWidth: number | undefined;
10
+ private _level;
11
+ setLevel(l: Level): this;
12
+ get isProductionMode(): boolean;
13
+ setProductionMode(productionMode: boolean): this;
14
+ mute(): this;
15
+ constructor(name: string, color: string, developmentMode: boolean, allowed: Level[], isMuted: boolean, fixedWidth: number | undefined);
16
+ onlyWhen(expression: (() => boolean) | boolean): void;
17
+ private _data;
18
+ private _error;
19
+ private _info;
20
+ private _success;
21
+ private _taskStarted;
22
+ private _taskDone;
23
+ private _warn;
24
+ /** @deprecated Use data(...)
25
+ * @see data
26
+ */
27
+ d: (name: string | any, ...data: any[]) => this;
28
+ /** @deprecated Use error(...)
29
+ * @see error
30
+ */
31
+ er: (name: string | any, ...data: any[]) => this;
32
+ /** @deprecated Use info(...)
33
+ * @see info
34
+ */
35
+ i: (name: string | any, ...data: any[]) => this;
36
+ /** @deprecated Use warn(...)
37
+ * @see warn
38
+ */
39
+ w: (name: string | any, ...data: any[]) => this;
40
+ /**
41
+ * Logs message and data with the level=data
42
+ * @param message The message
43
+ * @param otherParams Additional parameters
44
+ */
45
+ data: (message: string, ...otherParams: any[]) => this;
46
+ /**
47
+ * Logs message and data with the level=error
48
+ * @param message The message
49
+ * @param otherParams Additional parameters
50
+ */
51
+ error: (message: string, ...otherParams: any[]) => this;
52
+ /**
53
+ * Logs message and data with the level=info
54
+ * @param message The message
55
+ * @param otherParams Additional parameters
56
+ */
57
+ info: (message: string, ...otherParams: any[]) => this;
58
+ /**
59
+ * Logs message and data with the level=success
60
+ * @param message The message
61
+ * @param otherParams Additional parameters
62
+ */
63
+ success: (message: string, ...otherParams: any[]) => this;
64
+ /**
65
+ * Logs message and data with the level=taskStarted
66
+ * @param message The message
67
+ * @param otherParams Additional parameters
68
+ */
69
+ taskStarted: (message: string, ...otherParams: any[]) => this;
70
+ /**
71
+ * Logs message and data with the level=taskDone
72
+ * @param message The message
73
+ * @param otherParams Additional parameters
74
+ */
75
+ taskDone: (message?: string, ...otherParams: any[]) => this;
76
+ /**
77
+ * Logs message and data with the level=warn
78
+ * @param message The message
79
+ * @param otherParams Additional parameters
80
+ */
81
+ warn: (message: string, ...otherParams: any[]) => this;
82
82
  }
@@ -1,6 +1,6 @@
1
1
  // @ts-nocheck
2
- /**
3
- * Generated bundle index. Do not edit.
4
- */
5
- /// <amd-module name="ng2-logger" />
2
+ /**
3
+ * Generated bundle index. Do not edit.
4
+ */
5
+ /// <amd-module name="ng2-logger" />
6
6
  export * from './public-api';
package/app/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from './ng2-logger.module';
2
- export * from './ng2-logger.component';
3
- declare function startBackend(): Promise<void>;
4
- export default startBackend;
package/app/index.js DELETED
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
4
- //#region #browser
5
- tslib_1.__exportStar(require("./ng2-logger.module"), exports);
6
- tslib_1.__exportStar(require("./ng2-logger.component"), exports);
7
- //#endregion
8
- //#region @backend
9
- function startBackend() {
10
- return tslib_1.__awaiter(this, void 0, void 0, function () {
11
- return tslib_1.__generator(this, function (_a) {
12
- console.log('backend stated... ');
13
- return [2 /*return*/];
14
- });
15
- });
16
- }
17
- exports.default = startBackend;
18
- //#endregion
19
- //# sourceMappingURL=index.js.map
package/app/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":";;;AAAA,kBAAkB;AAClB,8DAAoC;AACpC,iEAAuC;AACvC,YAAY;AAGZ,kBAAkB;AAElB,SAAe,YAAY;;;YACzB,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;;;;CAClC;AAED,kBAAe,YAAY,CAAC;AAC5B,YAAY"}
@@ -1,5 +0,0 @@
1
- export declare class Ng2LoggerComponent {
2
- processes: any[];
3
- ngOnInit(): Promise<void>;
4
- constructor();
5
- }
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Ng2LoggerComponent = void 0;
4
- var tslib_1 = require("tslib");
5
- var core_1 = require("@angular/core");
6
- var tnp_config_1 = require("tnp-config");
7
- var lib_1 = require("../lib");
8
- var log = lib_1.Log.create('my logger!');
9
- var Ng2LoggerComponent = /** @class */ (function () {
10
- function Ng2LoggerComponent() {
11
- this.processes = [];
12
- console.log('tnp-config', tnp_config_1.config);
13
- }
14
- Ng2LoggerComponent.prototype.ngOnInit = function () {
15
- return tslib_1.__awaiter(this, void 0, void 0, function () {
16
- return tslib_1.__generator(this, function (_a) {
17
- // const processes = await PROCESS.getAll();
18
- log.d("hello from loger");
19
- return [2 /*return*/];
20
- });
21
- });
22
- };
23
- Ng2LoggerComponent = tslib_1.__decorate([
24
- (0, core_1.Component)({
25
- selector: 'app-ng2-logger',
26
- template: ' <h1> Hello from component! </h1> ',
27
- }),
28
- tslib_1.__metadata("design:paramtypes", [])
29
- ], Ng2LoggerComponent);
30
- return Ng2LoggerComponent;
31
- }());
32
- exports.Ng2LoggerComponent = Ng2LoggerComponent;
33
- //# sourceMappingURL=ng2-logger.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ng2-logger.component.js","sourceRoot":"","sources":["../../src/app/ng2-logger.component.ts"],"names":[],"mappings":";;;;AAAA,sCAAoD;AACpD,yCAAoC;AACpC,8BAA6B;AAE7B,IAAM,GAAG,GAAG,SAAG,CAAC,MAAM,CAAC,YAAY,CAAC,CAAA;AAMpC;IAQE;QAPA,cAAS,GAAG,EAAE,CAAC;QAQb,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,mBAAM,CAAC,CAAA;IACnC,CAAC;IARK,qCAAQ,GAAd;;;gBACE,4CAA4C;gBAC5C,GAAG,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC;;;;KAE3B;IANU,kBAAkB;QAJ9B,IAAA,gBAAS,EAAC;YACT,QAAQ,EAAE,gBAAgB;YAC1B,QAAQ,EAAE,wCAAwC;SACnD,CAAC;;OACW,kBAAkB,CAY9B;IAAD,yBAAC;CAAA,AAZD,IAYC;AAZY,gDAAkB"}
@@ -1,2 +0,0 @@
1
- export declare class Ng2LoggerModule {
2
- }
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Ng2LoggerModule = void 0;
4
- var tslib_1 = require("tslib");
5
- var core_1 = require("@angular/core");
6
- var platform_browser_1 = require("@angular/platform-browser");
7
- var ng2_logger_component_1 = require("./ng2-logger.component");
8
- // import { CanvasDrawerModule } from '@codete-ngrx-quick-start/shared'
9
- // console.log(CanvasDrawerModule)
10
- var Ng2LoggerModule = /** @class */ (function () {
11
- function Ng2LoggerModule() {
12
- }
13
- Ng2LoggerModule = tslib_1.__decorate([
14
- (0, core_1.NgModule)({
15
- imports: [
16
- // CanvasDrawerModule,
17
- platform_browser_1.BrowserModule,
18
- ],
19
- declarations: [
20
- ng2_logger_component_1.Ng2LoggerComponent,
21
- ],
22
- exports: [
23
- ng2_logger_component_1.Ng2LoggerComponent
24
- ]
25
- })
26
- ], Ng2LoggerModule);
27
- return Ng2LoggerModule;
28
- }());
29
- exports.Ng2LoggerModule = Ng2LoggerModule;
30
- //# sourceMappingURL=ng2-logger.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ng2-logger.module.js","sourceRoot":"","sources":["../../src/app/ng2-logger.module.ts"],"names":[],"mappings":";;;;AACA,sCAAyC;AACzC,8DAA0D;AAC1D,+DAA4D;AAC5D,uEAAuE;AACvE,kCAAkC;AAclC;IAAA;IAA+B,CAAC;IAAnB,eAAe;QAZ3B,IAAA,eAAQ,EAAC;YACR,OAAO,EAAE;gBACP,sBAAsB;gBACtB,gCAAa;aACd;YACD,YAAY,EAAE;gBACZ,yCAAkB;aACnB;YACD,OAAO,EAAE;gBACP,yCAAkB;aACnB;SACF,CAAC;OACW,eAAe,CAAI;IAAD,sBAAC;CAAA,AAAhC,IAAgC;AAAnB,0CAAe"}