@testomatio/reporter 2.0.0-beta-esm → 2.0.1-beta-esm

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 (115) hide show
  1. package/lib/adapter/codecept.d.ts +2 -0
  2. package/lib/adapter/codecept.js +31 -24
  3. package/lib/adapter/cucumber/current.d.ts +14 -0
  4. package/lib/adapter/cucumber/legacy.d.ts +0 -0
  5. package/lib/adapter/cucumber.d.ts +2 -0
  6. package/lib/adapter/cypress-plugin/index.d.ts +2 -0
  7. package/lib/adapter/cypress-plugin/index.js +11 -9
  8. package/lib/adapter/jasmine.d.ts +11 -0
  9. package/lib/adapter/jest.d.ts +13 -0
  10. package/lib/adapter/mocha.d.ts +2 -0
  11. package/lib/adapter/mocha.js +4 -3
  12. package/lib/adapter/playwright.d.ts +14 -0
  13. package/lib/adapter/playwright.js +58 -33
  14. package/lib/adapter/vitest.d.ts +35 -0
  15. package/lib/adapter/vitest.js +6 -6
  16. package/lib/adapter/webdriver.d.ts +24 -0
  17. package/lib/adapter/webdriver.js +34 -6
  18. package/lib/bin/cli.d.ts +2 -0
  19. package/lib/bin/cli.js +228 -0
  20. package/lib/bin/reportXml.d.ts +2 -0
  21. package/lib/bin/reportXml.js +11 -9
  22. package/lib/bin/startTest.d.ts +2 -0
  23. package/lib/bin/startTest.js +9 -5
  24. package/lib/bin/uploadArtifacts.d.ts +2 -0
  25. package/lib/bin/uploadArtifacts.js +81 -0
  26. package/lib/client.d.ts +76 -0
  27. package/lib/client.js +111 -45
  28. package/lib/config.d.ts +1 -0
  29. package/lib/constants.d.ts +25 -0
  30. package/lib/constants.js +5 -1
  31. package/lib/data-storage.d.ts +34 -0
  32. package/lib/data-storage.js +2 -2
  33. package/lib/junit-adapter/adapter.d.ts +9 -0
  34. package/lib/junit-adapter/csharp.d.ts +4 -0
  35. package/lib/junit-adapter/index.d.ts +3 -0
  36. package/lib/junit-adapter/java.d.ts +5 -0
  37. package/lib/junit-adapter/javascript.d.ts +4 -0
  38. package/lib/junit-adapter/python.d.ts +5 -0
  39. package/lib/junit-adapter/ruby.d.ts +4 -0
  40. package/lib/output.d.ts +11 -0
  41. package/lib/package.json +3 -1
  42. package/lib/pipe/bitbucket.d.ts +23 -0
  43. package/lib/pipe/bitbucket.js +2 -2
  44. package/lib/pipe/csv.d.ts +47 -0
  45. package/lib/pipe/csv.js +2 -2
  46. package/lib/pipe/debug.d.ts +29 -0
  47. package/lib/pipe/debug.js +108 -0
  48. package/lib/pipe/github.d.ts +30 -0
  49. package/lib/pipe/github.js +2 -2
  50. package/lib/pipe/gitlab.d.ts +23 -0
  51. package/lib/pipe/gitlab.js +2 -2
  52. package/lib/pipe/html.d.ts +34 -0
  53. package/lib/pipe/html.js +8 -1
  54. package/lib/pipe/index.d.ts +1 -0
  55. package/lib/pipe/index.js +3 -3
  56. package/lib/pipe/testomatio.d.ts +70 -0
  57. package/lib/pipe/testomatio.js +50 -30
  58. package/lib/reporter-functions.d.ts +34 -0
  59. package/lib/reporter-functions.js +17 -7
  60. package/lib/reporter.d.ts +232 -0
  61. package/lib/reporter.js +19 -33
  62. package/lib/services/artifacts.d.ts +33 -0
  63. package/lib/services/index.d.ts +9 -0
  64. package/lib/services/key-values.d.ts +27 -0
  65. package/lib/services/key-values.js +1 -1
  66. package/lib/services/logger.d.ts +64 -0
  67. package/lib/template/testomatio.hbs +651 -1366
  68. package/lib/uploader.d.ts +60 -0
  69. package/lib/uploader.js +312 -0
  70. package/lib/utils/pipe_utils.d.ts +41 -0
  71. package/lib/utils/pipe_utils.js +3 -5
  72. package/lib/utils/utils.d.ts +45 -0
  73. package/lib/utils/utils.js +69 -2
  74. package/lib/xmlReader.d.ts +92 -0
  75. package/lib/xmlReader.js +22 -12
  76. package/package.json +15 -9
  77. package/src/adapter/codecept.js +30 -24
  78. package/src/adapter/cypress-plugin/index.js +5 -3
  79. package/src/adapter/mocha.cjs +1 -1
  80. package/src/adapter/mocha.js +4 -3
  81. package/src/adapter/playwright.js +59 -31
  82. package/src/adapter/vitest.js +6 -6
  83. package/src/adapter/webdriver.js +41 -10
  84. package/src/bin/cli.js +280 -0
  85. package/src/bin/reportXml.js +15 -8
  86. package/src/bin/startTest.js +7 -3
  87. package/src/bin/uploadArtifacts.js +90 -0
  88. package/src/client.js +137 -56
  89. package/src/constants.js +5 -1
  90. package/src/data-storage.js +2 -2
  91. package/src/pipe/bitbucket.js +2 -2
  92. package/src/pipe/csv.js +3 -3
  93. package/src/pipe/debug.js +104 -0
  94. package/src/pipe/github.js +2 -3
  95. package/src/pipe/gitlab.js +6 -6
  96. package/src/pipe/html.js +11 -3
  97. package/src/pipe/index.js +5 -7
  98. package/src/pipe/testomatio.js +72 -67
  99. package/src/reporter-functions.js +18 -7
  100. package/src/reporter.cjs_decprecated +21 -0
  101. package/src/reporter.js +20 -11
  102. package/src/services/key-values.js +1 -1
  103. package/src/services/logger.js +4 -2
  104. package/src/template/testomatio.hbs +651 -1366
  105. package/src/uploader.js +371 -0
  106. package/src/utils/pipe_utils.js +4 -12
  107. package/src/utils/utils.js +48 -6
  108. package/src/xmlReader.js +26 -15
  109. package/lib/adapter/jasmine/jasmine.js +0 -63
  110. package/lib/adapter/mocha/mocha.js +0 -125
  111. package/lib/fileUploader.js +0 -245
  112. package/lib/utils/chalk.js +0 -10
  113. package/src/fileUploader.js +0 -307
  114. package/src/reporter.cjs +0 -22
  115. package/src/utils/chalk.js +0 -13
@@ -0,0 +1,232 @@
1
+ export type artifact = typeof import("./reporter-functions.js");
2
+ export const artifact: (data: string | {
3
+ path: string;
4
+ type: string;
5
+ name: string;
6
+ }, context?: any) => void;
7
+ export type log = typeof import("./reporter-functions.js");
8
+ export const log: (...args: any[]) => void;
9
+ export type logger = typeof import("./services/index.js");
10
+ export const logger: {
11
+ "__#12@#originalUserLogger": {
12
+ assert(condition?: boolean, ...data: any[]): void;
13
+ assert(value: any, message?: string, ...optionalParams: any[]): void;
14
+ clear(): void;
15
+ clear(): void;
16
+ count(label?: string): void;
17
+ count(label?: string): void;
18
+ countReset(label?: string): void;
19
+ countReset(label?: string): void;
20
+ debug(...data: any[]): void;
21
+ debug(message?: any, ...optionalParams: any[]): void;
22
+ dir(item?: any, options?: any): void;
23
+ dir(obj: any, options?: import("util").InspectOptions): void;
24
+ dirxml(...data: any[]): void;
25
+ dirxml(...data: any[]): void;
26
+ error(...data: any[]): void;
27
+ error(message?: any, ...optionalParams: any[]): void;
28
+ group(...data: any[]): void;
29
+ group(...label: any[]): void;
30
+ groupCollapsed(...data: any[]): void;
31
+ groupCollapsed(...label: any[]): void;
32
+ groupEnd(): void;
33
+ groupEnd(): void;
34
+ info(...data: any[]): void;
35
+ info(message?: any, ...optionalParams: any[]): void;
36
+ log(...data: any[]): void;
37
+ log(message?: any, ...optionalParams: any[]): void;
38
+ table(tabularData?: any, properties?: string[]): void;
39
+ table(tabularData: any, properties?: readonly string[]): void;
40
+ time(label?: string): void;
41
+ time(label?: string): void;
42
+ timeEnd(label?: string): void;
43
+ timeEnd(label?: string): void;
44
+ timeLog(label?: string, ...data: any[]): void;
45
+ timeLog(label?: string, ...data: any[]): void;
46
+ timeStamp(label?: string): void;
47
+ timeStamp(label?: string): void;
48
+ trace(...data: any[]): void;
49
+ trace(message?: any, ...optionalParams: any[]): void;
50
+ warn(...data: any[]): void;
51
+ warn(message?: any, ...optionalParams: any[]): void;
52
+ Console: console.ConsoleConstructor;
53
+ profile(label?: string): void;
54
+ profileEnd(label?: string): void;
55
+ };
56
+ "__#12@#userLoggerWithOverridenMethods": any;
57
+ logLevel: string;
58
+ step(strings: any, ...values: any[]): void;
59
+ getLogs(context: string): string[];
60
+ "__#12@#stringifyLogs"(...args: any[]): string;
61
+ _templateLiteralLog(strings: any, ...args: any[]): void;
62
+ "__#12@#logWrapper"(argsArray: any, level: any): void;
63
+ assert(...args: any[]): void;
64
+ debug(...args: any[]): void;
65
+ error(...args: any[]): void;
66
+ info(...args: any[]): void;
67
+ log(...args: any[]): void;
68
+ trace(...args: any[]): void;
69
+ warn(...args: any[]): void;
70
+ intercept(userLogger: any): void;
71
+ stopInterception(): void;
72
+ configure(config?: {
73
+ logLevel?: string;
74
+ prettyObjects?: boolean;
75
+ }): void;
76
+ prettyObjects: boolean;
77
+ };
78
+ export type meta = typeof import("./reporter-functions.js");
79
+ export const meta: (keyValue: {
80
+ [key: string]: string;
81
+ } | string, value?: string | null) => void;
82
+ export type step = typeof import("./reporter-functions.js");
83
+ export const step: (message: string) => void;
84
+ declare namespace _default {
85
+ let testomatioLogger: {
86
+ "__#12@#originalUserLogger": {
87
+ assert(condition?: boolean, ...data: any[]): void;
88
+ assert(value: any, message?: string, ...optionalParams: any[]): void;
89
+ clear(): void;
90
+ clear(): void;
91
+ count(label?: string): void;
92
+ count(label?: string): void;
93
+ countReset(label?: string): void;
94
+ countReset(label?: string): void;
95
+ debug(...data: any[]): void;
96
+ debug(message?: any, ...optionalParams: any[]): void;
97
+ dir(item?: any, options?: any): void;
98
+ dir(obj: any, options?: import("util").InspectOptions): void;
99
+ dirxml(...data: any[]): void;
100
+ dirxml(...data: any[]): void;
101
+ error(...data: any[]): void;
102
+ error(message?: any, ...optionalParams: any[]): void;
103
+ group(...data: any[]): void;
104
+ group(...label: any[]): void;
105
+ groupCollapsed(...data: any[]): void;
106
+ groupCollapsed(...label: any[]): void;
107
+ groupEnd(): void;
108
+ groupEnd(): void;
109
+ info(...data: any[]): void;
110
+ info(message?: any, ...optionalParams: any[]): void;
111
+ log(...data: any[]): void;
112
+ log(message?: any, ...optionalParams: any[]): void;
113
+ table(tabularData?: any, properties?: string[]): void;
114
+ table(tabularData: any, properties?: readonly string[]): void;
115
+ time(label?: string): void;
116
+ time(label?: string): void;
117
+ timeEnd(label?: string): void;
118
+ timeEnd(label?: string): void;
119
+ timeLog(label?: string, ...data: any[]): void;
120
+ timeLog(label?: string, ...data: any[]): void;
121
+ timeStamp(label?: string): void;
122
+ timeStamp(label?: string): void;
123
+ trace(...data: any[]): void;
124
+ trace(message?: any, ...optionalParams: any[]): void;
125
+ warn(...data: any[]): void;
126
+ warn(message?: any, ...optionalParams: any[]): void;
127
+ Console: console.ConsoleConstructor;
128
+ profile(label?: string): void;
129
+ profileEnd(label?: string): void;
130
+ };
131
+ "__#12@#userLoggerWithOverridenMethods": any;
132
+ logLevel: string;
133
+ step(strings: any, ...values: any[]): void;
134
+ getLogs(context: string): string[];
135
+ "__#12@#stringifyLogs"(...args: any[]): string;
136
+ _templateLiteralLog(strings: any, ...args: any[]): void;
137
+ "__#12@#logWrapper"(argsArray: any, level: any): void;
138
+ assert(...args: any[]): void;
139
+ debug(...args: any[]): void;
140
+ error(...args: any[]): void;
141
+ info(...args: any[]): void;
142
+ log(...args: any[]): void;
143
+ trace(...args: any[]): void;
144
+ warn(...args: any[]): void;
145
+ intercept(userLogger: any): void;
146
+ stopInterception(): void;
147
+ configure(config?: {
148
+ logLevel?: string;
149
+ prettyObjects?: boolean;
150
+ }): void;
151
+ prettyObjects: boolean;
152
+ };
153
+ let artifact: (data: string | {
154
+ path: string;
155
+ type: string;
156
+ name: string;
157
+ }, context?: any) => void;
158
+ let log: (...args: any[]) => void;
159
+ let logger: {
160
+ "__#12@#originalUserLogger": {
161
+ assert(condition?: boolean, ...data: any[]): void;
162
+ assert(value: any, message?: string, ...optionalParams: any[]): void;
163
+ clear(): void;
164
+ clear(): void;
165
+ count(label?: string): void;
166
+ count(label?: string): void;
167
+ countReset(label?: string): void;
168
+ countReset(label?: string): void;
169
+ debug(...data: any[]): void;
170
+ debug(message?: any, ...optionalParams: any[]): void;
171
+ dir(item?: any, options?: any): void;
172
+ dir(obj: any, options?: import("util").InspectOptions): void;
173
+ dirxml(...data: any[]): void;
174
+ dirxml(...data: any[]): void;
175
+ error(...data: any[]): void;
176
+ error(message?: any, ...optionalParams: any[]): void;
177
+ group(...data: any[]): void;
178
+ group(...label: any[]): void;
179
+ groupCollapsed(...data: any[]): void;
180
+ groupCollapsed(...label: any[]): void;
181
+ groupEnd(): void;
182
+ groupEnd(): void;
183
+ info(...data: any[]): void;
184
+ info(message?: any, ...optionalParams: any[]): void;
185
+ log(...data: any[]): void;
186
+ log(message?: any, ...optionalParams: any[]): void;
187
+ table(tabularData?: any, properties?: string[]): void;
188
+ table(tabularData: any, properties?: readonly string[]): void;
189
+ time(label?: string): void;
190
+ time(label?: string): void;
191
+ timeEnd(label?: string): void;
192
+ timeEnd(label?: string): void;
193
+ timeLog(label?: string, ...data: any[]): void;
194
+ timeLog(label?: string, ...data: any[]): void;
195
+ timeStamp(label?: string): void;
196
+ timeStamp(label?: string): void;
197
+ trace(...data: any[]): void;
198
+ trace(message?: any, ...optionalParams: any[]): void;
199
+ warn(...data: any[]): void;
200
+ warn(message?: any, ...optionalParams: any[]): void;
201
+ Console: console.ConsoleConstructor;
202
+ profile(label?: string): void;
203
+ profileEnd(label?: string): void;
204
+ };
205
+ "__#12@#userLoggerWithOverridenMethods": any;
206
+ logLevel: string;
207
+ step(strings: any, ...values: any[]): void;
208
+ getLogs(context: string): string[];
209
+ "__#12@#stringifyLogs"(...args: any[]): string;
210
+ _templateLiteralLog(strings: any, ...args: any[]): void;
211
+ "__#12@#logWrapper"(argsArray: any, level: any): void;
212
+ assert(...args: any[]): void;
213
+ debug(...args: any[]): void;
214
+ error(...args: any[]): void;
215
+ info(...args: any[]): void;
216
+ log(...args: any[]): void;
217
+ trace(...args: any[]): void;
218
+ warn(...args: any[]): void;
219
+ intercept(userLogger: any): void;
220
+ stopInterception(): void;
221
+ configure(config?: {
222
+ logLevel?: string;
223
+ prettyObjects?: boolean;
224
+ }): void;
225
+ prettyObjects: boolean;
226
+ };
227
+ let meta: (keyValue: {
228
+ [key: string]: string;
229
+ } | string, value?: string | null) => void;
230
+ let step: (message: string) => void;
231
+ }
232
+ export default _default;
package/lib/reporter.js CHANGED
@@ -1,49 +1,35 @@
1
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 (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
4
  };
28
5
  Object.defineProperty(exports, "__esModule", { value: true });
29
6
  exports.step = exports.meta = exports.logger = exports.log = exports.artifact = void 0;
30
- const client_js_1 = __importDefault(require("./client.js"));
31
- const TRConstants = __importStar(require("./constants.js"));
7
+ // import TestomatClient from './client.js';
8
+ // import * as TRConstants from './constants.js';
32
9
  const index_js_1 = require("./services/index.js");
33
10
  const reporter_functions_js_1 = __importDefault(require("./reporter-functions.js"));
11
+ exports.artifact = reporter_functions_js_1.default.artifact;
12
+ exports.log = reporter_functions_js_1.default.log;
13
+ exports.logger = index_js_1.services.logger;
14
+ exports.meta = reporter_functions_js_1.default.keyValue;
15
+ exports.step = reporter_functions_js_1.default.step;
16
+ /**
17
+ * @typedef {import('./reporter-functions.js')} artifact
18
+ * @typedef {import('./reporter-functions.js')} log
19
+ * @typedef {import('./services/index.js')} logger
20
+ * @typedef {import('./reporter-functions.js')} meta
21
+ * @typedef {import('./reporter-functions.js')} step
22
+ */
34
23
  module.exports = {
35
- // TODO: deprecate in future; use log or testomat.log
24
+ /**
25
+ * @deprecated Use `log` or `testomat.log`
26
+ */
36
27
  testomatioLogger: index_js_1.services.logger,
37
28
  artifact: reporter_functions_js_1.default.artifact,
38
29
  log: reporter_functions_js_1.default.log,
39
30
  logger: index_js_1.services.logger,
40
31
  meta: reporter_functions_js_1.default.keyValue,
41
32
  step: reporter_functions_js_1.default.step,
42
- TestomatClient: client_js_1.default,
43
- TRConstants,
33
+ // TestomatClient,
34
+ // TRConstants,
44
35
  };
45
- exports.artifact = reporter_functions_js_1.default.artifact;
46
- exports.log = reporter_functions_js_1.default.log;
47
- exports.logger = index_js_1.services.logger;
48
- exports.meta = reporter_functions_js_1.default.keyValue;
49
- exports.step = reporter_functions_js_1.default.step;
@@ -0,0 +1,33 @@
1
+ export const artifactStorage: ArtifactStorage;
2
+ /**
3
+ * Artifact storage is supposed to store file paths
4
+ */
5
+ declare class ArtifactStorage {
6
+ static "__#13@#instance": any;
7
+ /**
8
+ * Singleton
9
+ * @returns {ArtifactStorage}
10
+ */
11
+ static getInstance(): ArtifactStorage;
12
+ /**
13
+ * Stores path to file as artifact and uploads it to the S3 storage
14
+ * @param {string | {path: string, type: string, name: string}} data - path to file or object with path, type and name
15
+ * @param {*} context testId or test title
16
+ */
17
+ put(data: string | {
18
+ path: string;
19
+ type: string;
20
+ name: string;
21
+ }, context?: any): void;
22
+ /**
23
+ * Returns list of artifacts to upload
24
+ * @param {*} context testId or test context from test runner
25
+ * @returns {(string | {path: string, type: string, name: string})[]}
26
+ */
27
+ get(context: any): (string | {
28
+ path: string;
29
+ type: string;
30
+ name: string;
31
+ })[];
32
+ }
33
+ export {};
@@ -0,0 +1,9 @@
1
+ export namespace services {
2
+ export { logger };
3
+ export { artifactStorage as artifacts };
4
+ export { keyValueStorage as keyValues };
5
+ export function setContext(context: any): void;
6
+ }
7
+ import { logger } from './logger.js';
8
+ import { artifactStorage } from './artifacts.js';
9
+ import { keyValueStorage } from './key-values.js';
@@ -0,0 +1,27 @@
1
+ export const keyValueStorage: KeyValueStorage;
2
+ declare class KeyValueStorage {
3
+ static "__#14@#instance": any;
4
+ /**
5
+ *
6
+ * @returns {KeyValueStorage}
7
+ */
8
+ static getInstance(): KeyValueStorage;
9
+ /**
10
+ * Stores key-value pair and passes it to reporter
11
+ * @param {{[key: string]: string}} keyValue - key-value pair(s) as object
12
+ * @param {*} context - full test title
13
+ */
14
+ put(keyValue: {
15
+ [key: string]: string;
16
+ }, context?: any): void;
17
+ /**
18
+ * Returns key-values pairs for the test as object
19
+ * @param {*} context testId or test context from test runner
20
+ * @returns {{[key: string]: string} | {}} key-values pairs as object, e.g. {priority: 'high', browser: 'chrome'}
21
+ */
22
+ get(context?: any): {
23
+ [key: string]: string;
24
+ } | {};
25
+ #private;
26
+ }
27
+ export {};
@@ -21,7 +21,7 @@ class KeyValueStorage {
21
21
  }
22
22
  /**
23
23
  * Stores key-value pair and passes it to reporter
24
- * @param {{key: string}} keyValue - key-value pair(s) as object
24
+ * @param {{[key: string]: string}} keyValue - key-value pair(s) as object
25
25
  * @param {*} context - full test title
26
26
  */
27
27
  put(keyValue, context = null) {
@@ -0,0 +1,64 @@
1
+ export const logger: Logger;
2
+ /**
3
+ * Logger allows to intercept logs from any logger (console.log, tracer, pino, etc)
4
+ * and save in the testomatio reporter.
5
+ * Supports different syntaxes to satisfy any user preferences.
6
+ */
7
+ declare class Logger {
8
+ static "__#12@#instance": any;
9
+ /**
10
+ *
11
+ * @returns {Logger}
12
+ */
13
+ static getInstance(): Logger;
14
+ logLevel: string;
15
+ /**
16
+ * Allows you to define a step inside a test. Step name is attached to the report and
17
+ * helps to understand the test flow.
18
+ * @param {*} strings
19
+ * @param {...any} values
20
+ */
21
+ step(strings: any, ...values: any[]): void;
22
+ /**
23
+ *
24
+ * @param {string} context testId or test context from test runner
25
+ * @returns {string[]}
26
+ */
27
+ getLogs(context: string): string[];
28
+ /**
29
+ * Tagget template literal. Allows to use different syntaxes:
30
+ * 1. Tagget template: log`text ${someVar}`
31
+ * 2. Standard: log(`text ${someVar}`)
32
+ * 3. Standard with multiple arguments: log('text', someVar)
33
+ */
34
+ _templateLiteralLog(strings: any, ...args: any[]): void;
35
+ assert(...args: any[]): void;
36
+ debug(...args: any[]): void;
37
+ error(...args: any[]): void;
38
+ info(...args: any[]): void;
39
+ log(...args: any[]): void;
40
+ trace(...args: any[]): void;
41
+ warn(...args: any[]): void;
42
+ /**
43
+ * Intercepts user logger messages.
44
+ * When call this method, Logger start to control the user logger
45
+ * @param {*} userLogger
46
+ */
47
+ intercept(userLogger: any): void;
48
+ stopInterception(): void;
49
+ /**
50
+ * Allows to configure logger. Make sure you do it before the logger usage in your code.
51
+ *
52
+ * @param {Object} [config={}] - The configuration object.
53
+ * @param {string} [config.logLevel] - The desired log level. Valid values are 'DEBUG', 'INFO', 'WARN', and 'ERROR'.
54
+ * @param {boolean} [config.prettyObjects] - Specifies whether to enable pretty printing of objects.
55
+ * @returns {void}
56
+ */
57
+ configure(config?: {
58
+ logLevel?: string;
59
+ prettyObjects?: boolean;
60
+ }): void;
61
+ prettyObjects: boolean;
62
+ #private;
63
+ }
64
+ export {};