modality-kit 0.0.9 → 0.0.11
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/dist/index.js +12 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -117,7 +117,6 @@ class ModalityLogger {
|
|
|
117
117
|
if (categroy) {
|
|
118
118
|
prefix += ` [${categroy}]`;
|
|
119
119
|
}
|
|
120
|
-
console.log("");
|
|
121
120
|
console.log(prefix);
|
|
122
121
|
return payload;
|
|
123
122
|
}
|
|
@@ -130,7 +129,11 @@ class ModalityLogger {
|
|
|
130
129
|
console.debug(formatted);
|
|
131
130
|
break;
|
|
132
131
|
case "info":
|
|
133
|
-
console.
|
|
132
|
+
console.dir(formatted, {
|
|
133
|
+
depth: null,
|
|
134
|
+
colors: true,
|
|
135
|
+
maxArrayLength: null
|
|
136
|
+
});
|
|
134
137
|
break;
|
|
135
138
|
case "warn":
|
|
136
139
|
console.warn(formatted);
|
|
@@ -158,11 +161,18 @@ class ModalityLogger {
|
|
|
158
161
|
console.log(formatted);
|
|
159
162
|
break;
|
|
160
163
|
}
|
|
164
|
+
console.log(`
|
|
165
|
+
|
|
166
|
+
`);
|
|
161
167
|
}
|
|
162
168
|
debug(message, error) {
|
|
163
169
|
this.log("debug", { message, error });
|
|
164
170
|
}
|
|
165
171
|
info(message, data) {
|
|
172
|
+
const log = { message };
|
|
173
|
+
if (data) {
|
|
174
|
+
log.data = data;
|
|
175
|
+
}
|
|
166
176
|
this.log("info", { message, data });
|
|
167
177
|
}
|
|
168
178
|
warn(message, resolution) {
|
package/package.json
CHANGED