@goldstack/utils-log 0.3.10 → 0.3.12

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.
@@ -1,5 +1,12 @@
1
- export declare function debug(msg: string): void;
2
- export declare function info(msg: string): void;
1
+ export declare function debug(msg: string, properties?: {
2
+ [key: string]: any;
3
+ }): void;
4
+ export declare function info(msg: string, properties?: {
5
+ [key: string]: any;
6
+ }): void;
7
+ export declare function warn(msg: string, properties?: {
8
+ [key: string]: any;
9
+ }): void;
3
10
  export declare function error(msg: string): void;
4
11
  export declare const fatal: (msg: string) => void;
5
12
  //# sourceMappingURL=utilsLog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utilsLog.d.ts","sourceRoot":"","sources":["../../src/utilsLog.ts"],"names":[],"mappings":"AAIA,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEtC;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED,eAAO,MAAM,KAAK,QAAS,MAAM,KAAG,IAMnC,CAAC"}
1
+ {"version":3,"file":"utilsLog.d.ts","sourceRoot":"","sources":["../../src/utilsLog.ts"],"names":[],"mappings":"AAIA,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,IAAI,CAE5E;AAED,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,IAAI,CAE3E;AAED,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,IAAI,CAE3E;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED,eAAO,MAAM,KAAK,QAAS,MAAM,KAAG,IAMnC,CAAC"}
@@ -1,16 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fatal = exports.error = exports.info = exports.debug = void 0;
3
+ exports.fatal = exports.error = exports.warn = exports.info = exports.debug = void 0;
4
4
  const utils_cli_1 = require("@goldstack/utils-cli");
5
5
  const isDebug = process.env.GOLDSTACK_DEBUG || process.env.DEBUG;
6
- function debug(msg) {
7
- (0, utils_cli_1.logger)().debug(msg);
6
+ function debug(msg, properties) {
7
+ (0, utils_cli_1.logger)().debug(properties, msg);
8
8
  }
9
9
  exports.debug = debug;
10
- function info(msg) {
11
- (0, utils_cli_1.logger)().info(msg);
10
+ function info(msg, properties) {
11
+ (0, utils_cli_1.logger)().info(properties, msg);
12
12
  }
13
13
  exports.info = info;
14
+ function warn(msg, properties) {
15
+ (0, utils_cli_1.logger)().warn(properties, msg);
16
+ }
17
+ exports.warn = warn;
14
18
  function error(msg) {
15
19
  (0, utils_cli_1.logger)().error(msg);
16
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"utilsLog.js","sourceRoot":"","sources":["../../src/utilsLog.ts"],"names":[],"mappings":";;;AAAA,oDAA8C;AAE9C,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC;AAEjE,SAAgB,KAAK,CAAC,GAAW;IAC/B,IAAA,kBAAM,GAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACtB,CAAC;AAFD,sBAEC;AAED,SAAgB,IAAI,CAAC,GAAW;IAC9B,IAAA,kBAAM,GAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC;AAFD,oBAEC;AAED,SAAgB,KAAK,CAAC,GAAW;IAC/B,IAAA,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AAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACpB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC;AANW,QAAA,KAAK,SAMhB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goldstack/utils-log",
3
- "version": "0.3.10",
3
+ "version": "0.3.12",
4
4
  "description": "Utilities for emitting logs.",
5
5
  "keywords": [
6
6
  "goldstack",