@eqxjs/nest-logger 3.1.0-beta.9 → 3.1.1-beta.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.
Files changed (122) hide show
  1. package/CHANGELOG +57 -1
  2. package/MIGRATION.md +234 -0
  3. package/PERFORMANCE_IMPROVEMENTS.md +158 -0
  4. package/README.md +2008 -16
  5. package/RESTRUCTURING_SUMMARY.md +272 -0
  6. package/STRUCTURE.md +110 -0
  7. package/dist/constants/action-message.constant.d.ts +187 -0
  8. package/dist/constants/action-message.constant.js +220 -0
  9. package/dist/constants/action-message.constant.js.map +1 -0
  10. package/dist/constants/index.d.ts +2 -0
  11. package/dist/constants/index.js +9 -0
  12. package/dist/constants/index.js.map +1 -0
  13. package/dist/constants/logger.constants.d.ts +17 -0
  14. package/dist/constants/logger.constants.js +20 -0
  15. package/dist/constants/logger.constants.js.map +1 -0
  16. package/dist/core/formatters/index.d.ts +1 -0
  17. package/dist/core/formatters/index.js +6 -0
  18. package/dist/core/formatters/index.js.map +1 -0
  19. package/dist/core/formatters/logger.formatter.d.ts +141 -0
  20. package/dist/core/formatters/logger.formatter.js +268 -0
  21. package/dist/core/formatters/logger.formatter.js.map +1 -0
  22. package/dist/core/loggers/app.logger.d.ts +46 -0
  23. package/dist/core/loggers/app.logger.js +92 -0
  24. package/dist/core/loggers/app.logger.js.map +1 -0
  25. package/dist/core/loggers/base-app.logger.d.ts +299 -0
  26. package/dist/core/loggers/base-app.logger.js +517 -0
  27. package/dist/core/loggers/base-app.logger.js.map +1 -0
  28. package/dist/core/loggers/custom.logger.d.ts +127 -0
  29. package/dist/core/loggers/custom.logger.js +260 -0
  30. package/dist/core/loggers/custom.logger.js.map +1 -0
  31. package/dist/core/loggers/index.d.ts +3 -0
  32. package/dist/core/loggers/index.js +10 -0
  33. package/dist/core/loggers/index.js.map +1 -0
  34. package/dist/helpers/datetime.helper.d.ts +24 -0
  35. package/dist/helpers/datetime.helper.js +36 -0
  36. package/dist/helpers/datetime.helper.js.map +1 -0
  37. package/dist/helpers/index.d.ts +5 -0
  38. package/dist/helpers/index.js +17 -0
  39. package/dist/helpers/index.js.map +1 -0
  40. package/dist/helpers/log.helper.d.ts +84 -0
  41. package/dist/helpers/log.helper.js +109 -0
  42. package/dist/helpers/log.helper.js.map +1 -0
  43. package/dist/helpers/logger-builder.helper.d.ts +242 -0
  44. package/dist/helpers/logger-builder.helper.js +345 -0
  45. package/dist/helpers/logger-builder.helper.js.map +1 -0
  46. package/dist/helpers/message-formatter.helper.d.ts +88 -0
  47. package/dist/helpers/message-formatter.helper.js +159 -0
  48. package/dist/helpers/message-formatter.helper.js.map +1 -0
  49. package/dist/helpers/time-performance.helper.d.ts +68 -0
  50. package/dist/helpers/time-performance.helper.js +82 -0
  51. package/dist/helpers/time-performance.helper.js.map +1 -0
  52. package/dist/index.d.ts +13 -5
  53. package/dist/index.js +24 -9
  54. package/dist/index.js.map +1 -1
  55. package/dist/interfaces/data-header.interface.d.ts +21 -0
  56. package/dist/{dto/m2.dto.js → interfaces/data-header.interface.js} +1 -1
  57. package/dist/interfaces/data-header.interface.js.map +1 -0
  58. package/dist/interfaces/data-protocol.interface.d.ts +14 -0
  59. package/dist/interfaces/data-protocol.interface.js +3 -0
  60. package/dist/interfaces/data-protocol.interface.js.map +1 -0
  61. package/dist/interfaces/data-service.interface.d.ts +21 -0
  62. package/dist/{dto/m3.dto.js → interfaces/data-service.interface.js} +1 -1
  63. package/dist/interfaces/data-service.interface.js.map +1 -0
  64. package/dist/{types.d.ts → interfaces/data.interface.d.ts} +4 -4
  65. package/dist/{dto/m1.dto.js → interfaces/data.interface.js} +1 -1
  66. package/dist/interfaces/data.interface.js.map +1 -0
  67. package/dist/interfaces/index.d.ts +5 -0
  68. package/dist/{types.js → interfaces/index.js} +1 -1
  69. package/dist/interfaces/index.js.map +1 -0
  70. package/dist/{dto/header.dto.js → interfaces/logger-opt.interface.js} +1 -1
  71. package/dist/interfaces/logger-opt.interface.js.map +1 -0
  72. package/dist/logger.module.js +4 -4
  73. package/dist/logger.module.js.map +1 -1
  74. package/dist/models/index.d.ts +1 -0
  75. package/dist/models/index.js +6 -0
  76. package/dist/models/index.js.map +1 -0
  77. package/dist/models/logger.dto.d.ts +71 -0
  78. package/dist/models/logger.dto.js +76 -0
  79. package/dist/models/logger.dto.js.map +1 -0
  80. package/package.json +30 -33
  81. package/dist/dto/header.dto.d.ts +0 -21
  82. package/dist/dto/header.dto.js.map +0 -1
  83. package/dist/dto/logger.dto.d.ts +0 -28
  84. package/dist/dto/logger.dto.js +0 -33
  85. package/dist/dto/logger.dto.js.map +0 -1
  86. package/dist/dto/m1.dto.d.ts +0 -7
  87. package/dist/dto/m1.dto.js.map +0 -1
  88. package/dist/dto/m2.dto.d.ts +0 -5
  89. package/dist/dto/m2.dto.js.map +0 -1
  90. package/dist/dto/m3.dto.d.ts +0 -5
  91. package/dist/dto/m3.dto.js.map +0 -1
  92. package/dist/dto/protocol.dto.d.ts +0 -14
  93. package/dist/dto/protocol.dto.js +0 -3
  94. package/dist/dto/protocol.dto.js.map +0 -1
  95. package/dist/dto/service.dto.d.ts +0 -25
  96. package/dist/dto/service.dto.js +0 -3
  97. package/dist/dto/service.dto.js.map +0 -1
  98. package/dist/logger.app.d.ts +0 -62
  99. package/dist/logger.app.js +0 -504
  100. package/dist/logger.app.js.map +0 -1
  101. package/dist/logger.service.d.ts +0 -15
  102. package/dist/logger.service.js +0 -158
  103. package/dist/logger.service.js.map +0 -1
  104. package/dist/logger.util.d.ts +0 -3
  105. package/dist/logger.util.js +0 -28
  106. package/dist/logger.util.js.map +0 -1
  107. package/dist/types.js.map +0 -1
  108. package/dist/utils/action.common.d.ts +0 -14
  109. package/dist/utils/action.common.js +0 -43
  110. package/dist/utils/action.common.js.map +0 -1
  111. package/dist/utils/datetime.util.d.ts +0 -1
  112. package/dist/utils/datetime.util.js +0 -13
  113. package/dist/utils/datetime.util.js.map +0 -1
  114. package/dist/utils/logger.opt.js +0 -3
  115. package/dist/utils/logger.opt.js.map +0 -1
  116. package/dist/utils/m1.utils.d.ts +0 -3
  117. package/dist/utils/m1.utils.js +0 -79
  118. package/dist/utils/m1.utils.js.map +0 -1
  119. package/dist/utils/time.performance.d.ts +0 -6
  120. package/dist/utils/time.performance.js +0 -18
  121. package/dist/utils/time.performance.js.map +0 -1
  122. /package/dist/{utils/logger.opt.d.ts → interfaces/logger-opt.interface.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger-builder.helper.js","sourceRoot":"","sources":["../../src/helpers/logger-builder.helper.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,88 @@
1
+ /**
2
+ * Formats a message of any type to string representation.
3
+ *
4
+ * Optimized for performance with fast paths for common cases (strings, numbers).
5
+ * Handles various input types:
6
+ * - Strings: returned as-is (fast path)
7
+ * - Numbers: converted to string
8
+ * - Functions: executed and result converted to string
9
+ * - null/undefined: returns empty string
10
+ * - Objects: JSON stringified with sensitive field masking
11
+ *
12
+ * @param message - The message to format (can be any type)
13
+ * @returns String representation of the message
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ * formatMessage('Hello'); // "Hello"
18
+ * formatMessage(123); // "123"
19
+ * formatMessage({ key: 'value' }); // "{\"key\":\"value\"}"
20
+ * formatMessage(null); // ""
21
+ * formatMessage(() => 'computed'); // "computed"
22
+ * ```
23
+ */
24
+ export declare function formatMessage(message: any): string;
25
+ /**
26
+ * Returns the provided value or the default 'none' string if the value is empty.
27
+ *
28
+ * Optimized for performance with faster checks. Returns DEFAULT_VALUES.NONE if:
29
+ * - value is undefined
30
+ * - value is an empty string
31
+ * - value has length of 0
32
+ *
33
+ * @param value - The value to check (optional string)
34
+ * @returns The original value if non-empty, or DEFAULT_VALUES.NONE ('none')
35
+ *
36
+ * @example
37
+ * ```typescript
38
+ * setValueOrDefault('test'); // "test"
39
+ * setValueOrDefault(''); // "none"
40
+ * setValueOrDefault(undefined); // "none"
41
+ * setValueOrDefault(' '); // " " (whitespace is considered non-empty)
42
+ * ```
43
+ */
44
+ export declare function setValueOrDefault(value?: string): string;
45
+ /**
46
+ * Truncates a message if it exceeds the specified maximum length.
47
+ *
48
+ * Optimized with early return for messages within the limit. Adds '...' to indicate truncation.
49
+ * Uses DEFAULT_VALUES.MAX_MESSAGE_LENGTH as the default limit.
50
+ *
51
+ * @param message - The message string to truncate
52
+ * @param maxLength - Maximum allowed length (default: DEFAULT_VALUES.MAX_MESSAGE_LENGTH)
53
+ * @returns The original message if within limit, or truncated message with '...' appended
54
+ *
55
+ * @example
56
+ * ```typescript
57
+ * truncateMessage('Short', 100); // "Short"
58
+ * truncateMessage('A very long message...', 10); // "A very lon..."
59
+ * truncateMessage('Hello World'); // Uses default max length
60
+ * ```
61
+ */
62
+ export declare function truncateMessage(message: string, maxLength?: number): string;
63
+ /**
64
+ * Merges broker information into a LoggerOpt object.
65
+ *
66
+ * Creates a new object with the broker field merged in. If opt is provided,
67
+ * spreads its properties and adds/overwrites the broker field. If opt is undefined,
68
+ * creates a new object with only the broker field.
69
+ *
70
+ * @param opt - Optional configuration object to merge with
71
+ * @param broker - Broker identifier to add to the configuration
72
+ * @returns New object with broker field merged in
73
+ *
74
+ * @example
75
+ * ```typescript
76
+ * // With existing options
77
+ * const opts = { customField: 'value' };
78
+ * mergeBrokerOption(opts, 'kafka');
79
+ * // Result: { customField: 'value', broker: 'kafka' }
80
+ *
81
+ * // Without existing options
82
+ * mergeBrokerOption(undefined, 'rabbitmq');
83
+ * // Result: { broker: 'rabbitmq' }
84
+ * ```
85
+ */
86
+ export declare function mergeBrokerOption<T extends {
87
+ broker?: string;
88
+ }>(opt: T | undefined, broker?: string): T;
@@ -0,0 +1,159 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.formatMessage = formatMessage;
37
+ exports.setValueOrDefault = setValueOrDefault;
38
+ exports.truncateMessage = truncateMessage;
39
+ exports.mergeBrokerOption = mergeBrokerOption;
40
+ const logger_constants_1 = require("../constants/logger.constants");
41
+ const logUtil = __importStar(require("./log.helper"));
42
+ /**
43
+ * Formats a message of any type to string representation.
44
+ *
45
+ * Optimized for performance with fast paths for common cases (strings, numbers).
46
+ * Handles various input types:
47
+ * - Strings: returned as-is (fast path)
48
+ * - Numbers: converted to string
49
+ * - Functions: executed and result converted to string
50
+ * - null/undefined: returns empty string
51
+ * - Objects: JSON stringified with sensitive field masking
52
+ *
53
+ * @param message - The message to format (can be any type)
54
+ * @returns String representation of the message
55
+ *
56
+ * @example
57
+ * ```typescript
58
+ * formatMessage('Hello'); // "Hello"
59
+ * formatMessage(123); // "123"
60
+ * formatMessage({ key: 'value' }); // "{\"key\":\"value\"}"
61
+ * formatMessage(null); // ""
62
+ * formatMessage(() => 'computed'); // "computed"
63
+ * ```
64
+ */
65
+ function formatMessage(message) {
66
+ // Fast path for most common case
67
+ if (typeof message === 'string') {
68
+ return message;
69
+ }
70
+ // Handle other types
71
+ if (typeof message === 'number') {
72
+ return String(message);
73
+ }
74
+ if (typeof message === 'function') {
75
+ return String(message());
76
+ }
77
+ // Handle null/undefined
78
+ if (message == null) {
79
+ return '';
80
+ }
81
+ // Object serialization (slowest path)
82
+ return logUtil.logStringify(message);
83
+ }
84
+ /**
85
+ * Returns the provided value or the default 'none' string if the value is empty.
86
+ *
87
+ * Optimized for performance with faster checks. Returns DEFAULT_VALUES.NONE if:
88
+ * - value is undefined
89
+ * - value is an empty string
90
+ * - value has length of 0
91
+ *
92
+ * @param value - The value to check (optional string)
93
+ * @returns The original value if non-empty, or DEFAULT_VALUES.NONE ('none')
94
+ *
95
+ * @example
96
+ * ```typescript
97
+ * setValueOrDefault('test'); // "test"
98
+ * setValueOrDefault(''); // "none"
99
+ * setValueOrDefault(undefined); // "none"
100
+ * setValueOrDefault(' '); // " " (whitespace is considered non-empty)
101
+ * ```
102
+ */
103
+ function setValueOrDefault(value) {
104
+ return value && value.length > 0 ? value : logger_constants_1.DEFAULT_VALUES.NONE;
105
+ }
106
+ /**
107
+ * Truncates a message if it exceeds the specified maximum length.
108
+ *
109
+ * Optimized with early return for messages within the limit. Adds '...' to indicate truncation.
110
+ * Uses DEFAULT_VALUES.MAX_MESSAGE_LENGTH as the default limit.
111
+ *
112
+ * @param message - The message string to truncate
113
+ * @param maxLength - Maximum allowed length (default: DEFAULT_VALUES.MAX_MESSAGE_LENGTH)
114
+ * @returns The original message if within limit, or truncated message with '...' appended
115
+ *
116
+ * @example
117
+ * ```typescript
118
+ * truncateMessage('Short', 100); // "Short"
119
+ * truncateMessage('A very long message...', 10); // "A very lon..."
120
+ * truncateMessage('Hello World'); // Uses default max length
121
+ * ```
122
+ */
123
+ function truncateMessage(message, maxLength = logger_constants_1.DEFAULT_VALUES.MAX_MESSAGE_LENGTH) {
124
+ // Fast path: most messages are within limit
125
+ if (message.length <= maxLength) {
126
+ return message;
127
+ }
128
+ return message.substring(0, maxLength) + '...';
129
+ }
130
+ /**
131
+ * Merges broker information into a LoggerOpt object.
132
+ *
133
+ * Creates a new object with the broker field merged in. If opt is provided,
134
+ * spreads its properties and adds/overwrites the broker field. If opt is undefined,
135
+ * creates a new object with only the broker field.
136
+ *
137
+ * @param opt - Optional configuration object to merge with
138
+ * @param broker - Broker identifier to add to the configuration
139
+ * @returns New object with broker field merged in
140
+ *
141
+ * @example
142
+ * ```typescript
143
+ * // With existing options
144
+ * const opts = { customField: 'value' };
145
+ * mergeBrokerOption(opts, 'kafka');
146
+ * // Result: { customField: 'value', broker: 'kafka' }
147
+ *
148
+ * // Without existing options
149
+ * mergeBrokerOption(undefined, 'rabbitmq');
150
+ * // Result: { broker: 'rabbitmq' }
151
+ * ```
152
+ */
153
+ function mergeBrokerOption(opt, broker) {
154
+ if (opt) {
155
+ return { ...opt, broker };
156
+ }
157
+ return { broker };
158
+ }
159
+ //# sourceMappingURL=message-formatter.helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-formatter.helper.js","sourceRoot":"","sources":["../../src/helpers/message-formatter.helper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,sCAsBC;AAqBD,8CAEC;AAmBD,0CASC;AAyBD,8CAQC;AApID,oEAA+D;AAC/D,sDAAwC;AAExC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,aAAa,CAAC,OAAY;IACxC,iCAAiC;IACjC,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,qBAAqB;IACrB,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;IAED,IAAI,OAAO,OAAO,KAAK,UAAU,EAAE,CAAC;QAClC,OAAO,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IAC3B,CAAC;IAED,wBAAwB;IACxB,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;QACpB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,sCAAsC;IACtC,OAAO,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;AACvC,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,iBAAiB,CAAC,KAAc;IAC9C,OAAO,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,iCAAc,CAAC,IAAI,CAAC;AACjE,CAAC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,eAAe,CAC7B,OAAe,EACf,YAAoB,iCAAc,CAAC,kBAAkB;IAErD,4CAA4C;IAC5C,IAAI,OAAO,CAAC,MAAM,IAAI,SAAS,EAAE,CAAC;QAChC,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,OAAO,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC;AACjD,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,iBAAiB,CAC/B,GAAkB,EAClB,MAAe;IAEf,IAAI,GAAG,EAAE,CAAC;QACR,OAAO,EAAE,GAAG,GAAG,EAAE,MAAM,EAAE,CAAC;IAC5B,CAAC;IACD,OAAO,EAAE,MAAM,EAAO,CAAC;AACzB,CAAC"}
@@ -0,0 +1,68 @@
1
+ /**
2
+ * TimeDiff - High-resolution timer for measuring elapsed time.
3
+ *
4
+ * Uses Node.js performance API to provide precise time measurements in milliseconds.
5
+ * Useful for tracking operation duration, performance monitoring, and logging service times.
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * const timer = new TimeDiff();
10
+ * await someOperation();
11
+ * const duration = timer.diff();
12
+ * console.log(`Operation took ${duration}ms`);
13
+ * ```
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ * // Using static start method
18
+ * const timer = TimeDiff.start();
19
+ * processData();
20
+ * console.log(`Elapsed: ${timer.end()}ms`);
21
+ * ```
22
+ */
23
+ export declare class TimeDiff {
24
+ private startTime;
25
+ /**
26
+ * Creates a new TimeDiff instance and starts the timer.
27
+ * The start time is captured immediately using high-resolution performance timer.
28
+ */
29
+ constructor();
30
+ /**
31
+ * Static factory method to create and start a new timer instance.
32
+ *
33
+ * @returns A new TimeDiff instance with the timer started
34
+ *
35
+ * @example
36
+ * ```typescript
37
+ * const timer = TimeDiff.start();
38
+ * ```
39
+ */
40
+ static start(): TimeDiff;
41
+ /**
42
+ * Calculates and returns the elapsed time since the timer was started.
43
+ * Returns the duration in milliseconds with 3 decimal places precision.
44
+ *
45
+ * @returns Elapsed time in milliseconds (e.g., 123.456)
46
+ *
47
+ * @example
48
+ * ```typescript
49
+ * const timer = new TimeDiff();
50
+ * await operation();
51
+ * const ms = timer.diff(); // e.g., 150.234
52
+ * ```
53
+ */
54
+ diff(): number;
55
+ /**
56
+ * Alias for diff() method. Returns the elapsed time since the timer was started.
57
+ *
58
+ * @returns Elapsed time in milliseconds
59
+ *
60
+ * @example
61
+ * ```typescript
62
+ * const timer = TimeDiff.start();
63
+ * processData();
64
+ * const duration = timer.end();
65
+ * ```
66
+ */
67
+ end(): number;
68
+ }
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TimeDiff = void 0;
4
+ const perf_hooks_1 = require("perf_hooks");
5
+ /**
6
+ * TimeDiff - High-resolution timer for measuring elapsed time.
7
+ *
8
+ * Uses Node.js performance API to provide precise time measurements in milliseconds.
9
+ * Useful for tracking operation duration, performance monitoring, and logging service times.
10
+ *
11
+ * @example
12
+ * ```typescript
13
+ * const timer = new TimeDiff();
14
+ * await someOperation();
15
+ * const duration = timer.diff();
16
+ * console.log(`Operation took ${duration}ms`);
17
+ * ```
18
+ *
19
+ * @example
20
+ * ```typescript
21
+ * // Using static start method
22
+ * const timer = TimeDiff.start();
23
+ * processData();
24
+ * console.log(`Elapsed: ${timer.end()}ms`);
25
+ * ```
26
+ */
27
+ class TimeDiff {
28
+ startTime;
29
+ /**
30
+ * Creates a new TimeDiff instance and starts the timer.
31
+ * The start time is captured immediately using high-resolution performance timer.
32
+ */
33
+ constructor() {
34
+ this.startTime = perf_hooks_1.performance.now();
35
+ }
36
+ /**
37
+ * Static factory method to create and start a new timer instance.
38
+ *
39
+ * @returns A new TimeDiff instance with the timer started
40
+ *
41
+ * @example
42
+ * ```typescript
43
+ * const timer = TimeDiff.start();
44
+ * ```
45
+ */
46
+ static start() {
47
+ return new TimeDiff();
48
+ }
49
+ /**
50
+ * Calculates and returns the elapsed time since the timer was started.
51
+ * Returns the duration in milliseconds with 3 decimal places precision.
52
+ *
53
+ * @returns Elapsed time in milliseconds (e.g., 123.456)
54
+ *
55
+ * @example
56
+ * ```typescript
57
+ * const timer = new TimeDiff();
58
+ * await operation();
59
+ * const ms = timer.diff(); // e.g., 150.234
60
+ * ```
61
+ */
62
+ diff() {
63
+ return parseFloat((perf_hooks_1.performance.now() - this.startTime).toFixed(3));
64
+ }
65
+ /**
66
+ * Alias for diff() method. Returns the elapsed time since the timer was started.
67
+ *
68
+ * @returns Elapsed time in milliseconds
69
+ *
70
+ * @example
71
+ * ```typescript
72
+ * const timer = TimeDiff.start();
73
+ * processData();
74
+ * const duration = timer.end();
75
+ * ```
76
+ */
77
+ end() {
78
+ return this.diff();
79
+ }
80
+ }
81
+ exports.TimeDiff = TimeDiff;
82
+ //# sourceMappingURL=time-performance.helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-performance.helper.js","sourceRoot":"","sources":["../../src/helpers/time-performance.helper.ts"],"names":[],"mappings":";;;AAAA,2CAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,QAAQ;IACX,SAAS,CAAS;IAE1B;;;OAGG;IACH;QACE,IAAI,CAAC,SAAS,GAAG,wBAAW,CAAC,GAAG,EAAE,CAAC;IACrC,CAAC;IAED;;;;;;;;;OASG;IACI,MAAM,CAAC,KAAK;QACjB,OAAO,IAAI,QAAQ,EAAE,CAAC;IACxB,CAAC;IAED;;;;;;;;;;;;OAYG;IACI,IAAI;QACT,OAAO,UAAU,CAAC,CAAC,wBAAW,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;;;OAWG;IACI,GAAG;QACR,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;IACrB,CAAC;CACF;AAzDD,4BAyDC"}
package/dist/index.d.ts CHANGED
@@ -1,7 +1,15 @@
1
1
  import 'reflect-metadata';
2
- export { CustomLogger } from './logger.service';
2
+ export { CustomLogger } from './core/loggers/custom.logger';
3
+ export { AppLogger } from './core/loggers/app.logger';
4
+ export { BaseAppLogger } from './core/loggers/base-app.logger';
3
5
  export { CustomLoggerModule } from './logger.module';
4
- export { AppLogger } from './logger.app';
5
- export { ActionMessage } from './utils/action.common';
6
- export { LoggerOpt } from './utils/logger.opt';
7
- export { TimeDiff } from './utils/time.performance';
6
+ export { DataM, DataM1I, DataM2I, DataM3I, IDataM, } from './interfaces/data.interface';
7
+ export { DataHeaderI } from './interfaces/data-header.interface';
8
+ export { DataProtocolI } from './interfaces/data-protocol.interface';
9
+ export { DataServiceI } from './interfaces/data-service.interface';
10
+ export { LoggerOpt } from './interfaces/logger-opt.interface';
11
+ export { LoggerDto } from './models/logger.dto';
12
+ export { ActionMessage } from './constants/action-message.constant';
13
+ export { TimeDiff } from './helpers/time-performance.helper';
14
+ export { dateFormat } from './helpers/datetime.helper';
15
+ export { isLevelEnable, logStringify, maskMessageReplacer, } from './helpers/log.helper';
package/dist/index.js CHANGED
@@ -1,15 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TimeDiff = exports.ActionMessage = exports.AppLogger = exports.CustomLoggerModule = exports.CustomLogger = void 0;
3
+ exports.maskMessageReplacer = exports.logStringify = exports.isLevelEnable = exports.dateFormat = exports.TimeDiff = exports.ActionMessage = exports.LoggerDto = exports.CustomLoggerModule = exports.BaseAppLogger = exports.AppLogger = exports.CustomLogger = void 0;
4
4
  require("reflect-metadata");
5
- var logger_service_1 = require("./logger.service");
6
- Object.defineProperty(exports, "CustomLogger", { enumerable: true, get: function () { return logger_service_1.CustomLogger; } });
5
+ // Core loggers
6
+ var custom_logger_1 = require("./core/loggers/custom.logger");
7
+ Object.defineProperty(exports, "CustomLogger", { enumerable: true, get: function () { return custom_logger_1.CustomLogger; } });
8
+ var app_logger_1 = require("./core/loggers/app.logger");
9
+ Object.defineProperty(exports, "AppLogger", { enumerable: true, get: function () { return app_logger_1.AppLogger; } });
10
+ var base_app_logger_1 = require("./core/loggers/base-app.logger");
11
+ Object.defineProperty(exports, "BaseAppLogger", { enumerable: true, get: function () { return base_app_logger_1.BaseAppLogger; } });
12
+ // Module
7
13
  var logger_module_1 = require("./logger.module");
8
14
  Object.defineProperty(exports, "CustomLoggerModule", { enumerable: true, get: function () { return logger_module_1.CustomLoggerModule; } });
9
- var logger_app_1 = require("./logger.app");
10
- Object.defineProperty(exports, "AppLogger", { enumerable: true, get: function () { return logger_app_1.AppLogger; } });
11
- var action_common_1 = require("./utils/action.common");
12
- Object.defineProperty(exports, "ActionMessage", { enumerable: true, get: function () { return action_common_1.ActionMessage; } });
13
- var time_performance_1 = require("./utils/time.performance");
14
- Object.defineProperty(exports, "TimeDiff", { enumerable: true, get: function () { return time_performance_1.TimeDiff; } });
15
+ // Models
16
+ var logger_dto_1 = require("./models/logger.dto");
17
+ Object.defineProperty(exports, "LoggerDto", { enumerable: true, get: function () { return logger_dto_1.LoggerDto; } });
18
+ // Constants
19
+ var action_message_constant_1 = require("./constants/action-message.constant");
20
+ Object.defineProperty(exports, "ActionMessage", { enumerable: true, get: function () { return action_message_constant_1.ActionMessage; } });
21
+ // Helpers
22
+ var time_performance_helper_1 = require("./helpers/time-performance.helper");
23
+ Object.defineProperty(exports, "TimeDiff", { enumerable: true, get: function () { return time_performance_helper_1.TimeDiff; } });
24
+ var datetime_helper_1 = require("./helpers/datetime.helper");
25
+ Object.defineProperty(exports, "dateFormat", { enumerable: true, get: function () { return datetime_helper_1.dateFormat; } });
26
+ var log_helper_1 = require("./helpers/log.helper");
27
+ Object.defineProperty(exports, "isLevelEnable", { enumerable: true, get: function () { return log_helper_1.isLevelEnable; } });
28
+ Object.defineProperty(exports, "logStringify", { enumerable: true, get: function () { return log_helper_1.logStringify; } });
29
+ Object.defineProperty(exports, "maskMessageReplacer", { enumerable: true, get: function () { return log_helper_1.maskMessageReplacer; } });
15
30
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,4BAA0B;AAE1B,mDAAgD;AAAvC,8GAAA,YAAY,OAAA;AACrB,iDAAqD;AAA5C,mHAAA,kBAAkB,OAAA;AAC3B,2CAAyC;AAAhC,uGAAA,SAAS,OAAA;AAClB,uDAAsD;AAA7C,8GAAA,aAAa,OAAA;AAEtB,6DAAoD;AAA3C,4GAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,4BAA0B;AAE1B,eAAe;AACf,8DAA4D;AAAnD,6GAAA,YAAY,OAAA;AACrB,wDAAsD;AAA7C,uGAAA,SAAS,OAAA;AAClB,kEAA+D;AAAtD,gHAAA,aAAa,OAAA;AAEtB,SAAS;AACT,iDAAqD;AAA5C,mHAAA,kBAAkB,OAAA;AAe3B,SAAS;AACT,kDAAgD;AAAvC,uGAAA,SAAS,OAAA;AAElB,YAAY;AACZ,+EAAoE;AAA3D,wHAAA,aAAa,OAAA;AAEtB,UAAU;AACV,6EAA6D;AAApD,mHAAA,QAAQ,OAAA;AACjB,6DAAuD;AAA9C,6GAAA,UAAU,OAAA;AACnB,mDAI8B;AAH5B,2GAAA,aAAa,OAAA;AACb,0GAAA,YAAY,OAAA;AACZ,iHAAA,mBAAmB,OAAA"}
@@ -0,0 +1,21 @@
1
+ export interface DataHeaderI extends Record<string, unknown> {
2
+ version?: string;
3
+ timestamp?: string;
4
+ orgService?: string;
5
+ channel?: string;
6
+ broker?: string;
7
+ useCase?: string;
8
+ useCaseStep?: string;
9
+ session?: string;
10
+ transaction?: string;
11
+ communication?: string;
12
+ groupTags?: [];
13
+ identity: {
14
+ device?: string | string[];
15
+ public?: string;
16
+ user?: string;
17
+ };
18
+ tmfSpec?: string;
19
+ baseApiVersion?: string;
20
+ instanceData?: string;
21
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=m2.dto.js.map
3
+ //# sourceMappingURL=data-header.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-header.interface.js","sourceRoot":"","sources":["../../src/interfaces/data-header.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export interface DataProtocolI extends Record<string, unknown> {
2
+ version?: string;
3
+ command?: string;
4
+ subCommand?: string;
5
+ invoke?: string;
6
+ qos?: string;
7
+ topic?: string;
8
+ token?: string;
9
+ service?: string;
10
+ locationInfo?: string;
11
+ networkInfo?: string;
12
+ deviceInfo?: string;
13
+ diagMessage?: string;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data-protocol.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-protocol.interface.js","sourceRoot":"","sources":["../../src/interfaces/data-protocol.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ export interface DataServiceI extends Record<string, unknown> {
2
+ version?: string;
3
+ timestamp?: string;
4
+ channel?: string;
5
+ broker?: string;
6
+ useCase?: string;
7
+ useCaseStep?: string;
8
+ name?: string;
9
+ invoke?: string;
10
+ session?: string;
11
+ transaction?: string;
12
+ token?: string;
13
+ orgService?: string;
14
+ communication?: string;
15
+ groupTags?: string[];
16
+ identity: {
17
+ device?: string | string[];
18
+ public?: string;
19
+ user?: string;
20
+ };
21
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=m3.dto.js.map
3
+ //# sourceMappingURL=data-service.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-service.interface.js","sourceRoot":"","sources":["../../src/interfaces/data-service.interface.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
- import { DataHeaderI } from './dto/header.dto';
2
- import { DataProtocolI } from './dto/protocol.dto';
3
- import { DataServiceI } from './dto/service.dto';
1
+ import { DataHeaderI } from './data-header.interface';
2
+ import { DataProtocolI } from './data-protocol.interface';
3
+ import { DataServiceI } from './data-service.interface';
4
4
  export interface IDataM {
5
5
  protocol?: DataProtocolI;
6
6
  header?: DataHeaderI;
@@ -16,4 +16,4 @@ export interface DataM2I extends IDataM {
16
16
  export interface DataM3I extends IDataM {
17
17
  service: DataServiceI;
18
18
  }
19
- export type DataM = DataM1I | DataM2I | DataM3I;
19
+ export type DataM = any;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=m1.dto.js.map
3
+ //# sourceMappingURL=data.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.interface.js","sourceRoot":"","sources":["../../src/interfaces/data.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export { DataM, DataM1I, DataM2I, DataM3I, IDataM } from './data.interface';
2
+ export { DataHeaderI } from './data-header.interface';
3
+ export { DataProtocolI } from './data-protocol.interface';
4
+ export { DataServiceI } from './data-service.interface';
5
+ export { LoggerOpt } from './logger-opt.interface';
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":""}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=header.dto.js.map
3
+ //# sourceMappingURL=logger-opt.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger-opt.interface.js","sourceRoot":"","sources":["../../src/interfaces/logger-opt.interface.ts"],"names":[],"mappings":""}
@@ -8,15 +8,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.CustomLoggerModule = void 0;
10
10
  const common_1 = require("@nestjs/common");
11
- const logger_app_1 = require("./logger.app");
12
- const logger_service_1 = require("./logger.service");
11
+ const app_logger_1 = require("./core/loggers/app.logger");
12
+ const custom_logger_1 = require("./core/loggers/custom.logger");
13
13
  let CustomLoggerModule = class CustomLoggerModule {
14
14
  };
15
15
  exports.CustomLoggerModule = CustomLoggerModule;
16
16
  exports.CustomLoggerModule = CustomLoggerModule = __decorate([
17
17
  (0, common_1.Module)({
18
- providers: [logger_service_1.CustomLogger, logger_app_1.AppLogger],
19
- exports: [logger_service_1.CustomLogger, logger_app_1.AppLogger],
18
+ providers: [custom_logger_1.CustomLogger, app_logger_1.AppLogger],
19
+ exports: [custom_logger_1.CustomLogger, app_logger_1.AppLogger],
20
20
  })
21
21
  ], CustomLoggerModule);
22
22
  //# sourceMappingURL=logger.module.js.map