vona-core 5.0.57 → 5.0.58
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/lib/core/logger.js +5 -1
- package/package.json +1 -1
package/dist/lib/core/logger.js
CHANGED
|
@@ -7,6 +7,7 @@ import { cast } from "../../types/utils/cast.js";
|
|
|
7
7
|
import { BeanSimple } from "../bean/beanSimple.js";
|
|
8
8
|
import { deepExtend } from "../utils/util.js";
|
|
9
9
|
const SymbolLoggerInstances = Symbol('SymbolLoggerInstances');
|
|
10
|
+
const SymbolLoggerMessage = Symbol('SymbolLoggerMessage');
|
|
10
11
|
export class AppLogger extends BeanSimple {
|
|
11
12
|
[SymbolLoggerInstances] = {};
|
|
12
13
|
async dispose() {
|
|
@@ -147,7 +148,10 @@ export const formatLoggerConsole = () => {
|
|
|
147
148
|
};
|
|
148
149
|
function __formatLoggerFilterCheckInfo(info) {
|
|
149
150
|
if (typeof info.message === 'function') {
|
|
150
|
-
info.message
|
|
151
|
+
if (info.message[SymbolLoggerMessage] === undefined) {
|
|
152
|
+
info.message[SymbolLoggerMessage] = info.message();
|
|
153
|
+
}
|
|
154
|
+
info.message = info.message[SymbolLoggerMessage];
|
|
151
155
|
}
|
|
152
156
|
return info;
|
|
153
157
|
}
|