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.
@@ -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 = 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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-core",
3
3
  "type": "module",
4
- "version": "5.0.57",
4
+ "version": "5.0.58",
5
5
  "description": "vona",
6
6
  "publishConfig": {
7
7
  "access": "public"