modality-kit 0.0.10 → 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 +9 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -90,9 +90,7 @@ class ModalityLogger {
|
|
|
90
90
|
}
|
|
91
91
|
format(level, payload, categroy) {
|
|
92
92
|
const timestamp = this.getTimestamp();
|
|
93
|
-
let prefix =
|
|
94
|
-
|
|
95
|
-
`;
|
|
93
|
+
let prefix = "";
|
|
96
94
|
switch (level) {
|
|
97
95
|
case "debug":
|
|
98
96
|
prefix = "\uD83D\uDD0D";
|
|
@@ -119,7 +117,6 @@ class ModalityLogger {
|
|
|
119
117
|
if (categroy) {
|
|
120
118
|
prefix += ` [${categroy}]`;
|
|
121
119
|
}
|
|
122
|
-
console.log("");
|
|
123
120
|
console.log(prefix);
|
|
124
121
|
return payload;
|
|
125
122
|
}
|
|
@@ -132,7 +129,11 @@ class ModalityLogger {
|
|
|
132
129
|
console.debug(formatted);
|
|
133
130
|
break;
|
|
134
131
|
case "info":
|
|
135
|
-
console.
|
|
132
|
+
console.dir(formatted, {
|
|
133
|
+
depth: null,
|
|
134
|
+
colors: true,
|
|
135
|
+
maxArrayLength: null
|
|
136
|
+
});
|
|
136
137
|
break;
|
|
137
138
|
case "warn":
|
|
138
139
|
console.warn(formatted);
|
|
@@ -160,6 +161,9 @@ class ModalityLogger {
|
|
|
160
161
|
console.log(formatted);
|
|
161
162
|
break;
|
|
162
163
|
}
|
|
164
|
+
console.log(`
|
|
165
|
+
|
|
166
|
+
`);
|
|
163
167
|
}
|
|
164
168
|
debug(message, error) {
|
|
165
169
|
this.log("debug", { message, error });
|
package/package.json
CHANGED