@gus-eip/loggers 3.3.3 → 3.3.5
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/cloudwatch.logger.d.ts +2 -2
- package/dist/cloudwatch.logger.js +4 -4
- package/dist/enum.d.ts +2 -0
- package/dist/enum.js +3 -1
- package/dist/interface.d.ts +2 -2
- package/package.json +1 -1
@@ -8,6 +8,6 @@ export declare class CloudWatchLoggerService implements ILogger {
|
|
8
8
|
createLogStream(logStreamName: string): Promise<any>;
|
9
9
|
logToCloudWatch(type: string, logObject: any, logStreamName: string): Promise<void>;
|
10
10
|
logStreamExists(logStreamName: string): Promise<boolean>;
|
11
|
-
log(
|
12
|
-
error(
|
11
|
+
log(correlationId: string, timestamp: string, component: string, source: string, destination: string, event: string, usecase: string, sourcePayload: any, destinationPayload: any, logMessage: any, brand: any, secondaryKey: string, logStreamName: string, destinationObjectType?: string, destinationObjectId?: string, sourceObjectType?: string, sourceObjectId?: string, destinationResponse?: any): Promise<any>;
|
12
|
+
error(correlationId: string, timestamp: string, component: string, source: string, destination: string, event: string, usecase: string, sourcePayload: any, destinationPayload: any, errorMessage: any, brand: any, secondaryKey: string, logStreamName: string, destinationObjectType?: string, destinationObjectId?: string, sourceObjectType?: string, sourceObjectId?: string, destinationResponse?: any): Promise<any>;
|
13
13
|
}
|
@@ -72,9 +72,9 @@ let CloudWatchLoggerService = class CloudWatchLoggerService {
|
|
72
72
|
throw error;
|
73
73
|
}
|
74
74
|
}
|
75
|
-
async log(
|
75
|
+
async log(correlationId, timestamp, component, source, destination, event, usecase, sourcePayload, destinationPayload, logMessage, brand, secondaryKey, logStreamName, destinationObjectType, destinationObjectId, sourceObjectType, sourceObjectId, destinationResponse) {
|
76
76
|
const logObject = {
|
77
|
-
|
77
|
+
correlationId,
|
78
78
|
timestamp,
|
79
79
|
type: 'INFO',
|
80
80
|
component,
|
@@ -95,9 +95,9 @@ let CloudWatchLoggerService = class CloudWatchLoggerService {
|
|
95
95
|
};
|
96
96
|
await this.logToCloudWatch('info', logObject, logStreamName);
|
97
97
|
}
|
98
|
-
async error(
|
98
|
+
async error(correlationId, timestamp, component, source, destination, event, usecase, sourcePayload, destinationPayload, errorMessage, brand, secondaryKey, logStreamName, destinationObjectType, destinationObjectId, sourceObjectType, sourceObjectId, destinationResponse) {
|
99
99
|
const logObject = {
|
100
|
-
|
100
|
+
correlationId,
|
101
101
|
timestamp,
|
102
102
|
type: 'Error',
|
103
103
|
component,
|
package/dist/enum.d.ts
CHANGED
@@ -21,6 +21,8 @@ export declare class LoggerEnum {
|
|
21
21
|
SYNC_APPLICATION_DETAILS: string;
|
22
22
|
SYNC_APPLICATION_STATUS_UPDATE: string;
|
23
23
|
SYNC_APPLICATION_DOCUMENT: string;
|
24
|
+
COMPOSITE_REQUEST_INITIATED: string;
|
25
|
+
COMPOSITE_REQUEST_COMPLETED: string;
|
24
26
|
};
|
25
27
|
UseCase: {
|
26
28
|
PROGRAM_INFO: string;
|
package/dist/enum.js
CHANGED
@@ -31,7 +31,9 @@ let LoggerEnum = class LoggerEnum {
|
|
31
31
|
CREATED_OPPORTUNITYLINEITEM: 'CREATED_OPPORTUNITYLINEITEM',
|
32
32
|
SYNC_APPLICATION_DETAILS: 'SYNC_APPLICATION_DETAILS',
|
33
33
|
SYNC_APPLICATION_STATUS_UPDATE: 'SYNC_APPLICATION_STATUS_UPDATE',
|
34
|
-
SYNC_APPLICATION_DOCUMENT: 'SYNC_APPLICATION_DOCUMENT'
|
34
|
+
SYNC_APPLICATION_DOCUMENT: 'SYNC_APPLICATION_DOCUMENT',
|
35
|
+
COMPOSITE_REQUEST_INITIATED: 'COMPOSITE_REQUEST_INITIATED',
|
36
|
+
COMPOSITE_REQUEST_COMPLETED: 'COMPOSITE_REQUEST_COMPLETED'
|
35
37
|
};
|
36
38
|
this.UseCase = {
|
37
39
|
PROGRAM_INFO: 'SAVE_PROGRAMME_DETAILS',
|
package/dist/interface.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
export interface ILogger {
|
2
|
-
log(
|
3
|
-
error(
|
2
|
+
log(correlationId: string, timestamp: string, component: string, source: string, destination: string, event: string, usecase: string, sourcePayload: any, destinationPayload: any, logMessage: any, brand: any, secondaryKey: string, logStreamName: string, destinationObjectType?: string, destinationObjectId?: string, sourceObjectType?: string, sourceObjectId?: string, destinationResponse?: any): Promise<any>;
|
3
|
+
error(correlationId: string, timestamp: string, component: string, source: string, destination: string, event: string, usecase: string, sourcePayload: any, destinationPayload: any, errorMessage: any, brand: any, secondaryKey: string, logStreamName: string, destinationObjectType?: string, destinationObjectId?: string, sourceObjectType?: string, sourceObjectId?: string, destinationResponse?: any): Promise<any>;
|
4
4
|
}
|
package/package.json
CHANGED