@bifold/remote-logs 2.4.0 → 2.4.1
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/build/logger.d.ts +7 -7
- package/build/logger.js +14 -14
- package/package.json +2 -2
- package/src/logger.ts +14 -14
package/build/logger.d.ts
CHANGED
|
@@ -37,12 +37,12 @@ export declare class RemoteLogger extends BifoldLogger {
|
|
|
37
37
|
startEventListeners(): void;
|
|
38
38
|
stopEventListeners(): void;
|
|
39
39
|
overrideCurrentAutoDisableExpiration(expirationInMinutes: number): void;
|
|
40
|
-
test(
|
|
41
|
-
trace(
|
|
42
|
-
debug(
|
|
43
|
-
info(
|
|
44
|
-
warn(
|
|
45
|
-
error(
|
|
46
|
-
fatal(
|
|
40
|
+
test(...msgs: unknown[]): void;
|
|
41
|
+
trace(...msgs: unknown[]): void;
|
|
42
|
+
debug(...msgs: unknown[]): void;
|
|
43
|
+
info(...msgs: unknown[]): void;
|
|
44
|
+
warn(...msgs: unknown[]): void;
|
|
45
|
+
error(...msgs: unknown[]): void;
|
|
46
|
+
fatal(...msgs: unknown[]): void;
|
|
47
47
|
report(bifoldError: BifoldError): void;
|
|
48
48
|
}
|
package/build/logger.js
CHANGED
|
@@ -96,33 +96,33 @@ class RemoteLogger extends core_1.BifoldLogger {
|
|
|
96
96
|
this.remoteLoggingEnabled = false;
|
|
97
97
|
}, expirationInMinutes * 60000);
|
|
98
98
|
}
|
|
99
|
-
test(
|
|
99
|
+
test(...msgs) {
|
|
100
100
|
var _a;
|
|
101
|
-
(_a = this._log) === null || _a === void 0 ? void 0 : _a.test(
|
|
101
|
+
(_a = this._log) === null || _a === void 0 ? void 0 : _a.test(...this.messageFormatter(...msgs));
|
|
102
102
|
}
|
|
103
|
-
trace(
|
|
103
|
+
trace(...msgs) {
|
|
104
104
|
var _a;
|
|
105
|
-
(_a = this._log) === null || _a === void 0 ? void 0 : _a.trace(
|
|
105
|
+
(_a = this._log) === null || _a === void 0 ? void 0 : _a.trace(...this.messageFormatter(...msgs));
|
|
106
106
|
}
|
|
107
|
-
debug(
|
|
107
|
+
debug(...msgs) {
|
|
108
108
|
var _a;
|
|
109
|
-
(_a = this._log) === null || _a === void 0 ? void 0 : _a.debug(
|
|
109
|
+
(_a = this._log) === null || _a === void 0 ? void 0 : _a.debug(...this.messageFormatter(...msgs));
|
|
110
110
|
}
|
|
111
|
-
info(
|
|
111
|
+
info(...msgs) {
|
|
112
112
|
var _a;
|
|
113
|
-
(_a = this._log) === null || _a === void 0 ? void 0 : _a.info(
|
|
113
|
+
(_a = this._log) === null || _a === void 0 ? void 0 : _a.info(...this.messageFormatter(...msgs));
|
|
114
114
|
}
|
|
115
|
-
warn(
|
|
115
|
+
warn(...msgs) {
|
|
116
116
|
var _a;
|
|
117
|
-
(_a = this._log) === null || _a === void 0 ? void 0 : _a.warn(
|
|
117
|
+
(_a = this._log) === null || _a === void 0 ? void 0 : _a.warn(...this.messageFormatter(...msgs));
|
|
118
118
|
}
|
|
119
|
-
error(
|
|
119
|
+
error(...msgs) {
|
|
120
120
|
var _a;
|
|
121
|
-
(_a = this._log) === null || _a === void 0 ? void 0 : _a.error(
|
|
121
|
+
(_a = this._log) === null || _a === void 0 ? void 0 : _a.error(...this.messageFormatter(...msgs));
|
|
122
122
|
}
|
|
123
|
-
fatal(
|
|
123
|
+
fatal(...msgs) {
|
|
124
124
|
var _a;
|
|
125
|
-
(_a = this._log) === null || _a === void 0 ? void 0 : _a.fatal(
|
|
125
|
+
(_a = this._log) === null || _a === void 0 ? void 0 : _a.fatal(...this.messageFormatter(...msgs));
|
|
126
126
|
}
|
|
127
127
|
report(bifoldError) {
|
|
128
128
|
var _a;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bifold/remote-logs",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Remote logging for credo-ts agents",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"hoistingLimits": "workspaces"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@bifold/core": "2.4.
|
|
51
|
+
"@bifold/core": "2.4.1",
|
|
52
52
|
"@credo-ts/core": "0.5.13",
|
|
53
53
|
"axios": "~1.4.0",
|
|
54
54
|
"buffer": "~6.0.3",
|
package/src/logger.ts
CHANGED
|
@@ -129,32 +129,32 @@ export class RemoteLogger extends BifoldLogger {
|
|
|
129
129
|
}, expirationInMinutes * 60000)
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
public test(
|
|
133
|
-
this._log?.test(
|
|
132
|
+
public test(...msgs: unknown[]): void {
|
|
133
|
+
this._log?.test(...this.messageFormatter(...msgs))
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
public trace(
|
|
137
|
-
this._log?.trace(
|
|
136
|
+
public trace(...msgs: unknown[]): void {
|
|
137
|
+
this._log?.trace(...this.messageFormatter(...msgs))
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
public debug(
|
|
141
|
-
this._log?.debug(
|
|
140
|
+
public debug(...msgs: unknown[]): void {
|
|
141
|
+
this._log?.debug(...this.messageFormatter(...msgs))
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
public info(
|
|
145
|
-
this._log?.info(
|
|
144
|
+
public info(...msgs: unknown[]): void {
|
|
145
|
+
this._log?.info(...this.messageFormatter(...msgs))
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
public warn(
|
|
149
|
-
this._log?.warn(
|
|
148
|
+
public warn(...msgs: unknown[]): void {
|
|
149
|
+
this._log?.warn(...this.messageFormatter(...msgs))
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
public error(
|
|
153
|
-
this._log?.error(
|
|
152
|
+
public error(...msgs: unknown[]): void {
|
|
153
|
+
this._log?.error(...this.messageFormatter(...msgs))
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
public fatal(
|
|
157
|
-
this._log?.fatal(
|
|
156
|
+
public fatal(...msgs: unknown[]): void {
|
|
157
|
+
this._log?.fatal(...this.messageFormatter(...msgs))
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
public report(bifoldError: BifoldError): void {
|