@nsshunt/stsappframework 3.0.183 → 3.0.184

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/index.js CHANGED
@@ -36,6 +36,6 @@ __exportStar(require("./influxdb/influxDBManagerService"), exports);
36
36
  __exportStar(require("./influxdb/influxDBManagerAgent"), exports);
37
37
  __exportStar(require("./publishertransports/publishTransportUtils"), exports);
38
38
  __exportStar(require("./instrumentationsubscriber"), exports);
39
- __exportStar(require("./stsTransportWinston"), exports);
40
- __exportStar(require("./stsAppFrameworkTransportWinston"), exports);
39
+ __exportStar(require("./stsTransportDebuggerWinston"), exports);
40
+ __exportStar(require("./stsTransportLoggerWinston"), exports);
41
41
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,mDAAgC;AAChC,6CAA0B;AAC1B,kDAA+B;AAC/B,kDAA+B;AAC/B,sDAAmC;AACnC,sDAAmC;AACnC,sDAAmC;AACnC,sDAAmC;AACnC,yDAAsC;AACtC,yDAAsC;AACtC,oDAAiC;AACjC,uDAAoC;AACpC,wDAAqC;AACrC,wDAAqC;AACrC,yDAAsC;AACtC,6DAA0C;AAC1C,iEAA8C;AAC9C,oEAAiD;AACjD,kEAA+C;AAC/C,8EAA2D;AAC3D,8DAA2C;AAC3C,wDAAqC;AACrC,oEAAiD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,mDAAgC;AAChC,6CAA0B;AAC1B,kDAA+B;AAC/B,kDAA+B;AAC/B,sDAAmC;AACnC,sDAAmC;AACnC,sDAAmC;AACnC,sDAAmC;AACnC,yDAAsC;AACtC,yDAAsC;AACtC,oDAAiC;AACjC,uDAAoC;AACpC,wDAAqC;AACrC,wDAAqC;AACrC,yDAAsC;AACtC,6DAA0C;AAC1C,iEAA8C;AAC9C,oEAAiD;AACjD,kEAA+C;AAC/C,8EAA2D;AAC3D,8DAA2C;AAC3C,gEAA6C;AAC7C,8DAA2C"}
@@ -3,19 +3,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.STSTransportWinston = exports.UpdateSTSTransportWithDebugger = void 0;
6
+ exports.STSTransportDebuggerWinston = exports.UpdateSTSTransportWithDebugger = void 0;
7
7
  /* eslint @typescript-eslint/no-explicit-any: 0 */ // --> OFF
8
8
  const winston_transport_1 = __importDefault(require("winston-transport"));
9
9
  function UpdateSTSTransportWithDebugger(logger, newDebugger) {
10
10
  const stsTransport = logger.transports.find((transport) => {
11
- return transport instanceof STSTransportWinston;
11
+ return transport instanceof STSTransportDebuggerWinston;
12
12
  });
13
13
  if (stsTransport) {
14
14
  stsTransport.debugger = newDebugger;
15
15
  }
16
16
  }
17
17
  exports.UpdateSTSTransportWithDebugger = UpdateSTSTransportWithDebugger;
18
- class STSTransportWinston extends winston_transport_1.default {
18
+ class STSTransportDebuggerWinston extends winston_transport_1.default {
19
19
  #options;
20
20
  constructor(opts) {
21
21
  super(opts);
@@ -39,5 +39,5 @@ class STSTransportWinston extends winston_transport_1.default {
39
39
  //});
40
40
  }
41
41
  }
42
- exports.STSTransportWinston = STSTransportWinston;
43
- //# sourceMappingURL=stsTransportWinston.js.map
42
+ exports.STSTransportDebuggerWinston = STSTransportDebuggerWinston;
43
+ //# sourceMappingURL=stsTransportDebuggerWinston.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stsTransportDebuggerWinston.js","sourceRoot":"","sources":["../src/stsTransportDebuggerWinston.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAkD,CAAE,UAAU;AAC9D,0EAAqE;AASrE,SAAgB,8BAA8B,CAAC,MAAW,EAAE,WAAgB;IACxE,MAAM,YAAY,GAA0B,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,SAAc,EAAE,EAAE;QAClF,OAAO,SAAS,YAAY,2BAA2B,CAAA;IAC3D,CAAC,CAAC,CAAC;IACH,IAAI,YAAY,EAAE,CAAC;QACd,YAA4C,CAAC,QAAQ,GAAG,WAAW,CAAA;IACxE,CAAC;AACL,CAAC;AAPD,wEAOC;AAED,MAAa,2BAA4B,SAAQ,2BAAS;IAEtD,QAAQ,CAAsC;IAE9C,YAAY,IAAyC;QACjD,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACzB,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC;IAClC,CAAC;IAED,IAAI,QAAQ,CAAC,WAAiC;QAC1C,IAAI,CAAC,QAAQ,CAAC,QAAQ,GAAG,WAAW,CAAC;IACzC,CAAC;IAED,GAAG,CAAC,IAAS,EAAE,QAAa;QACxB,sBAAsB;QACtB,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,OAAO,EAAE,CAAC;YACvC,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;gBACzB,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACzC,CAAC;QACL,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAC1B,QAAQ,EAAE,CAAC;QACX,KAAK;IACT,CAAC;CACJ;AA5BD,kEA4BC"}
@@ -3,22 +3,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.STSAppFrameworkTransportWinston = void 0;
6
+ exports.STSTransportLoggerWinston = void 0;
7
7
  /* eslint @typescript-eslint/no-explicit-any: 0 */ // --> OFF
8
8
  const winston_transport_1 = __importDefault(require("winston-transport"));
9
- class STSAppFrameworkTransportWinston extends winston_transport_1.default {
9
+ class STSTransportLoggerWinston extends winston_transport_1.default {
10
10
  #options;
11
11
  constructor(opts) {
12
12
  super(opts);
13
13
  this.#options = opts;
14
14
  }
15
15
  log(info, callback) {
16
- //setImmediate(() => {
17
- this.#options.app.LogEx(info.message);
16
+ this.#options.stsApp.LogMessageToLoggerInstrument(info.message);
18
17
  this.emit('logged', info);
19
18
  callback();
20
- //});
21
19
  }
22
20
  }
23
- exports.STSAppFrameworkTransportWinston = STSAppFrameworkTransportWinston;
24
- //# sourceMappingURL=stsAppFrameworkTransportWinston.js.map
21
+ exports.STSTransportLoggerWinston = STSTransportLoggerWinston;
22
+ //# sourceMappingURL=stsTransportLoggerWinston.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stsTransportLoggerWinston.js","sourceRoot":"","sources":["../src/stsTransportLoggerWinston.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAkD,CAAE,UAAU;AAC9D,0EAAqE;AAQrE,MAAa,yBAA0B,SAAQ,2BAAS;IACpD,QAAQ,CAAmC;IAE3C,YAAY,IAAuC;QAC/C,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACzB,CAAC;IAED,GAAG,CAAC,IAAS,EAAE,QAAa;QACxB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,4BAA4B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAC1B,QAAQ,EAAE,CAAC;IACf,CAAC;CACJ;AAbD,8DAaC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nsshunt/stsappframework",
3
- "version": "3.0.183",
3
+ "version": "3.0.184",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "./types/index.d.ts",
package/src/index.ts CHANGED
@@ -20,5 +20,5 @@ export * from './influxdb/influxDBManagerService'
20
20
  export * from './influxdb/influxDBManagerAgent'
21
21
  export * from './publishertransports/publishTransportUtils'
22
22
  export * from './instrumentationsubscriber'
23
- export * from './stsTransportWinston'
24
- export * from './stsAppFrameworkTransportWinston'
23
+ export * from './stsTransportDebuggerWinston'
24
+ export * from './stsTransportLoggerWinston'
@@ -3,25 +3,25 @@ import Transport, { TransportStreamOptions } from 'winston-transport'
3
3
 
4
4
  import debugModule from 'debug'
5
5
 
6
- export interface ISTSTransportWinstonOptions extends TransportStreamOptions {
6
+ export interface ISTSTransportDebuggerWinstonOptions extends TransportStreamOptions {
7
7
  stsContext: string
8
8
  debugger?: debugModule.Debugger
9
9
  }
10
10
 
11
11
  export function UpdateSTSTransportWithDebugger(logger: any, newDebugger: any): void {
12
12
  const stsTransport: Transport | undefined = logger.transports.find((transport: any) => {
13
- return transport instanceof STSTransportWinston
13
+ return transport instanceof STSTransportDebuggerWinston
14
14
  });
15
15
  if (stsTransport) {
16
- (stsTransport as STSTransportWinston).debugger = newDebugger
16
+ (stsTransport as STSTransportDebuggerWinston).debugger = newDebugger
17
17
  }
18
18
  }
19
19
 
20
- export class STSTransportWinston extends Transport {
20
+ export class STSTransportDebuggerWinston extends Transport {
21
21
 
22
- #options: ISTSTransportWinstonOptions;
22
+ #options: ISTSTransportDebuggerWinstonOptions;
23
23
 
24
- constructor(opts: ISTSTransportWinstonOptions) {
24
+ constructor(opts: ISTSTransportDebuggerWinstonOptions) {
25
25
  super(opts);
26
26
  this.#options = opts;
27
27
  }
@@ -0,0 +1,23 @@
1
+ /* eslint @typescript-eslint/no-explicit-any: 0 */ // --> OFF
2
+ import Transport, { TransportStreamOptions } from 'winston-transport'
3
+ import { IProcessBase } from './commonTypes'
4
+
5
+ interface ISTSTransportLoggerWinstonOptions extends TransportStreamOptions {
6
+ //stsContext: string
7
+ stsApp: IProcessBase
8
+ }
9
+
10
+ export class STSTransportLoggerWinston extends Transport {
11
+ #options: ISTSTransportLoggerWinstonOptions
12
+
13
+ constructor(opts: ISTSTransportLoggerWinstonOptions) {
14
+ super(opts);
15
+ this.#options = opts;
16
+ }
17
+
18
+ log(info: any, callback: any) {
19
+ this.#options.stsApp.LogMessageToLoggerInstrument(info.message);
20
+ this.emit('logged', info);
21
+ callback();
22
+ }
23
+ }
package/types/index.d.ts CHANGED
@@ -20,6 +20,6 @@ export * from './influxdb/influxDBManagerService';
20
20
  export * from './influxdb/influxDBManagerAgent';
21
21
  export * from './publishertransports/publishTransportUtils';
22
22
  export * from './instrumentationsubscriber';
23
- export * from './stsTransportWinston';
24
- export * from './stsAppFrameworkTransportWinston';
23
+ export * from './stsTransportDebuggerWinston';
24
+ export * from './stsTransportLoggerWinston';
25
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,mCAAmC,CAAA;AACjD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6BAA6B,CAAA;AAC3C,cAAc,uBAAuB,CAAA;AACrC,cAAc,mCAAmC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,mCAAmC,CAAA;AACjD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA"}
@@ -1,15 +1,15 @@
1
1
  import Transport, { TransportStreamOptions } from 'winston-transport';
2
2
  import debugModule from 'debug';
3
- export interface ISTSTransportWinstonOptions extends TransportStreamOptions {
3
+ export interface ISTSTransportDebuggerWinstonOptions extends TransportStreamOptions {
4
4
  stsContext: string;
5
5
  debugger?: debugModule.Debugger;
6
6
  }
7
7
  export declare function UpdateSTSTransportWithDebugger(logger: any, newDebugger: any): void;
8
- export declare class STSTransportWinston extends Transport {
8
+ export declare class STSTransportDebuggerWinston extends Transport {
9
9
  #private;
10
- constructor(opts: ISTSTransportWinstonOptions);
10
+ constructor(opts: ISTSTransportDebuggerWinstonOptions);
11
11
  get debugger(): debugModule.Debugger | undefined;
12
12
  set debugger(newDebugger: debugModule.Debugger);
13
13
  log(info: any, callback: any): void;
14
14
  }
15
- //# sourceMappingURL=stsTransportWinston.d.ts.map
15
+ //# sourceMappingURL=stsTransportDebuggerWinston.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stsTransportDebuggerWinston.d.ts","sourceRoot":"","sources":["../src/stsTransportDebuggerWinston.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,EAAE,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAErE,OAAO,WAAW,MAAM,OAAO,CAAA;AAE/B,MAAM,WAAW,mCAAoC,SAAQ,sBAAsB;IAC/E,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAA;CAClC;AAED,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,GAAG,IAAI,CAOlF;AAED,qBAAa,2BAA4B,SAAQ,SAAS;;gBAI1C,IAAI,EAAE,mCAAmC;IAKrD,IAAI,QAAQ,IAAK,WAAW,CAAC,QAAQ,GAAG,SAAS,CAEhD;IAED,IAAI,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,QAAQ,EAE7C;IAED,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG;CAW/B"}
@@ -0,0 +1,12 @@
1
+ import Transport, { TransportStreamOptions } from 'winston-transport';
2
+ import { IProcessBase } from './commonTypes';
3
+ interface ISTSTransportLoggerWinstonOptions extends TransportStreamOptions {
4
+ stsApp: IProcessBase;
5
+ }
6
+ export declare class STSTransportLoggerWinston extends Transport {
7
+ #private;
8
+ constructor(opts: ISTSTransportLoggerWinstonOptions);
9
+ log(info: any, callback: any): void;
10
+ }
11
+ export {};
12
+ //# sourceMappingURL=stsTransportLoggerWinston.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stsTransportLoggerWinston.d.ts","sourceRoot":"","sources":["../src/stsTransportLoggerWinston.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,EAAE,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAE5C,UAAU,iCAAkC,SAAQ,sBAAsB;IAEtE,MAAM,EAAE,YAAY,CAAA;CACvB;AAED,qBAAa,yBAA0B,SAAQ,SAAS;;gBAGxC,IAAI,EAAE,iCAAiC;IAKnD,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG;CAK/B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"stsAppFrameworkTransportWinston.js","sourceRoot":"","sources":["../src/stsAppFrameworkTransportWinston.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAkD,CAAE,UAAU;AAC9D,0EAAqE;AASrE,MAAa,+BAAgC,SAAQ,2BAAS;IAE1D,QAAQ,CAA0C;IAElD,YAAY,IAA6C;QACrD,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACzB,CAAC;IAED,GAAG,CAAC,IAAS,EAAE,QAAa;QACxB,sBAAsB;QACtB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAEtC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAC1B,QAAQ,EAAE,CAAC;QACX,KAAK;IACT,CAAC;CACJ;AAjBD,0EAiBC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"stsTransportWinston.js","sourceRoot":"","sources":["../src/stsTransportWinston.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAkD,CAAE,UAAU;AAC9D,0EAAqE;AASrE,SAAgB,8BAA8B,CAAC,MAAW,EAAE,WAAgB;IACxE,MAAM,YAAY,GAA0B,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,SAAc,EAAE,EAAE;QAClF,OAAO,SAAS,YAAY,mBAAmB,CAAA;IACnD,CAAC,CAAC,CAAC;IACH,IAAI,YAAY,EAAE,CAAC;QACd,YAAoC,CAAC,QAAQ,GAAG,WAAW,CAAA;IAChE,CAAC;AACL,CAAC;AAPD,wEAOC;AAED,MAAa,mBAAoB,SAAQ,2BAAS;IAE9C,QAAQ,CAA8B;IAEtC,YAAY,IAAiC;QACzC,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACzB,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC;IAClC,CAAC;IAED,IAAI,QAAQ,CAAC,WAAiC;QAC1C,IAAI,CAAC,QAAQ,CAAC,QAAQ,GAAG,WAAW,CAAC;IACzC,CAAC;IAED,GAAG,CAAC,IAAS,EAAE,QAAa;QACxB,sBAAsB;QACtB,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,OAAO,EAAE,CAAC;YACvC,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;gBACzB,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACzC,CAAC;QACL,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAC1B,QAAQ,EAAE,CAAC;QACX,KAAK;IACT,CAAC;CACJ;AA5BD,kDA4BC"}
@@ -1,28 +0,0 @@
1
- /* eslint @typescript-eslint/no-explicit-any: 0 */ // --> OFF
2
- import Transport, { TransportStreamOptions } from 'winston-transport'
3
-
4
- import { IProcessBase } from './commonTypes'
5
-
6
- export interface ISTSAppFrameworkTransportWinstonOptions extends TransportStreamOptions {
7
- stsContext: string
8
- app: IProcessBase
9
- }
10
-
11
- export class STSAppFrameworkTransportWinston extends Transport {
12
-
13
- #options: ISTSAppFrameworkTransportWinstonOptions;
14
-
15
- constructor(opts: ISTSAppFrameworkTransportWinstonOptions) {
16
- super(opts);
17
- this.#options = opts;
18
- }
19
-
20
- log(info: any, callback: any) {
21
- //setImmediate(() => {
22
- this.#options.app.LogEx(info.message);
23
-
24
- this.emit('logged', info);
25
- callback();
26
- //});
27
- }
28
- }
@@ -1,12 +0,0 @@
1
- import Transport, { TransportStreamOptions } from 'winston-transport';
2
- import { IProcessBase } from './commonTypes';
3
- export interface ISTSAppFrameworkTransportWinstonOptions extends TransportStreamOptions {
4
- stsContext: string;
5
- app: IProcessBase;
6
- }
7
- export declare class STSAppFrameworkTransportWinston extends Transport {
8
- #private;
9
- constructor(opts: ISTSAppFrameworkTransportWinstonOptions);
10
- log(info: any, callback: any): void;
11
- }
12
- //# sourceMappingURL=stsAppFrameworkTransportWinston.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stsAppFrameworkTransportWinston.d.ts","sourceRoot":"","sources":["../src/stsAppFrameworkTransportWinston.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,EAAE,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAErE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAE5C,MAAM,WAAW,uCAAwC,SAAQ,sBAAsB;IACnF,UAAU,EAAE,MAAM,CAAA;IAClB,GAAG,EAAE,YAAY,CAAA;CACpB;AAED,qBAAa,+BAAgC,SAAQ,SAAS;;gBAI9C,IAAI,EAAE,uCAAuC;IAKzD,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG;CAQ/B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"stsTransportWinston.d.ts","sourceRoot":"","sources":["../src/stsTransportWinston.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,EAAE,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAErE,OAAO,WAAW,MAAM,OAAO,CAAA;AAE/B,MAAM,WAAW,2BAA4B,SAAQ,sBAAsB;IACvE,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAA;CAClC;AAED,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,GAAG,IAAI,CAOlF;AAED,qBAAa,mBAAoB,SAAQ,SAAS;;gBAIlC,IAAI,EAAE,2BAA2B;IAK7C,IAAI,QAAQ,IAAK,WAAW,CAAC,QAAQ,GAAG,SAAS,CAEhD;IAED,IAAI,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,QAAQ,EAE7C;IAED,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG;CAW/B"}