xcally-nest-library 0.0.25 → 0.0.27

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xcally-nest-library",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -54,7 +54,9 @@ import { LoggerService } from './logger.service';
54
54
  level: config.get('LOG_LEVEL') || 'info',
55
55
  target: 'pino/file',
56
56
  options: {
57
- destination: process.env.LOG_OUT_DIR + `${projectName}.log` || `./logs/${projectName}.log`,
57
+ destination: process.env.LOG_OUT_DIR
58
+ ? process.env.LOG_OUT_DIR + `${projectName}.log`
59
+ : `./logs/${projectName}.log`,
58
60
  mkdir: true,
59
61
  append: process.env.NODE_ENV !== 'production' ? false : true,
60
62
  },
@@ -5,13 +5,11 @@ import api from '@opentelemetry/api';
5
5
  * @interface LoggerMeta
6
6
  * @description Interface representing metadata for logging purposes.
7
7
  *
8
- * @property {any} [payload] - Optional payload data to be logged.
9
- *
10
8
  * @property {any} [ctx] - Optional context information to be logged. Used for audit logging.
11
9
  */
12
10
  interface LoggerMeta {
13
- payload?: any;
14
11
  ctx?: any;
12
+ [key: string]: any;
15
13
  }
16
14
  @Injectable()
17
15
  export class LoggerService {