vona-module-a-logger 5.0.29 → 5.0.30

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.
@@ -9,5 +9,5 @@ export declare class BeanLogger extends BeanBase {
9
9
  get(clientName?: keyof ILoggerClientRecord): Winston.Logger;
10
10
  getChild(childName: keyof ILoggerChildRecord, clientName?: keyof ILoggerClientRecord): Winston.Logger;
11
11
  makeTransportFile(clientInfo: ILoggerOptionsClientInfo, fileName: string, levelStrict?: LoggerLevel): Transport;
12
- makeTransportConsole(clientInfo: ILoggerOptionsClientInfo): Transport | undefined;
12
+ makeTransportConsole(clientInfo: ILoggerOptionsClientInfo): Transport;
13
13
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { BeanInfo, BeanBase, BeanAopMethodBase, SymbolBeanFullName, cast, formatLoggerFilter, formatLoggerConsole, BeanSimple, combineConfigDefault, deepExtend, BeanScopeBase } from 'vona';
1
+ import { BeanInfo, BeanBase, BeanAopMethodBase, SymbolBeanFullName, cast, formatLoggerFilter, formatLoggerDummy, formatLoggerConsole, BeanSimple, combineConfigDefault, deepExtend, BeanScopeBase } from 'vona';
2
2
  import StdSerializers from 'pino-std-serializers';
3
3
  import { MiddlewareSystem, AopMethod } from 'vona-module-a-aspect';
4
4
  import { evaluateExpressions } from '@cabloy/utils';
@@ -174,10 +174,9 @@ let BeanLogger = (_dec$2 = Bean(), _dec2$2 = BeanInfo({
174
174
  });
175
175
  }
176
176
  makeTransportConsole(clientInfo) {
177
- if (this.app.meta.env.LOGGER_DUMMY === 'true') return;
178
177
  return new Winston.transports.Console({
179
178
  level: 'silly',
180
- format: Winston.format.combine(formatLoggerFilter({
179
+ format: Winston.format.combine(formatLoggerDummy(), formatLoggerFilter({
181
180
  level: clientInfo.level,
182
181
  silly: true
183
182
  }), Winston.format.colorize(), formatLoggerConsole(clientInfo)),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-a-logger",
3
3
  "type": "module",
4
- "version": "5.0.29",
4
+ "version": "5.0.30",
5
5
  "title": "a-logger",
6
6
  "vonaModule": {
7
7
  "dependencies": {},