@gus-eip/loggers 3.1.1 → 3.1.2
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.
@@ -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(requestedId: string, timestamp: string, component: string, source: string, destination: string, event: string, usecase: string, source_payload: any, destination_payload: any, logMessage: any, brand: any, secondary_key: string, destination_ObjectType: string, destination_ObjectId: string,
|
12
|
-
error(requestedId: string, timestamp: string, component: string, source: string, destination: string, event: string, usecase: string, source_payload: any, destination_payload: any, errorMessage: any, brand: any, secondary_key: string, destination_ObjectType: string, destination_ObjectId: string,
|
11
|
+
log(requestedId: string, timestamp: string, component: string, source: string, destination: string, event: string, usecase: string, source_payload: any, destination_payload: any, logMessage: any, brand: any, secondary_key: string, destination_ObjectType: string, destination_ObjectId: string, logStreamName: string): Promise<any>;
|
12
|
+
error(requestedId: string, timestamp: string, component: string, source: string, destination: string, event: string, usecase: string, source_payload: any, destination_payload: any, errorMessage: any, brand: any, secondary_key: string, destination_ObjectType: string, destination_ObjectId: string, logStreamName: string): Promise<any>;
|
13
13
|
}
|
@@ -72,7 +72,7 @@ let CloudWatchLoggerService = class CloudWatchLoggerService {
|
|
72
72
|
throw error;
|
73
73
|
}
|
74
74
|
}
|
75
|
-
async log(requestedId, timestamp, component, source, destination, event, usecase, source_payload, destination_payload, logMessage, brand, secondary_key, destination_ObjectType, destination_ObjectId,
|
75
|
+
async log(requestedId, timestamp, component, source, destination, event, usecase, source_payload, destination_payload, logMessage, brand, secondary_key, destination_ObjectType, destination_ObjectId, logStreamName) {
|
76
76
|
const logObject = {
|
77
77
|
requestedId,
|
78
78
|
timestamp,
|
@@ -88,13 +88,11 @@ let CloudWatchLoggerService = class CloudWatchLoggerService {
|
|
88
88
|
brand,
|
89
89
|
secondary_key,
|
90
90
|
destination_ObjectType,
|
91
|
-
destination_ObjectId
|
92
|
-
source_ObjectType,
|
93
|
-
source_ObjectId
|
91
|
+
destination_ObjectId
|
94
92
|
};
|
95
93
|
await this.logToCloudWatch('info', logObject, logStreamName);
|
96
94
|
}
|
97
|
-
async error(requestedId, timestamp, component, source, destination, event, usecase, source_payload, destination_payload, errorMessage, brand, secondary_key, destination_ObjectType, destination_ObjectId,
|
95
|
+
async error(requestedId, timestamp, component, source, destination, event, usecase, source_payload, destination_payload, errorMessage, brand, secondary_key, destination_ObjectType, destination_ObjectId, logStreamName) {
|
98
96
|
const logObject = {
|
99
97
|
requestedId,
|
100
98
|
timestamp,
|
@@ -110,9 +108,7 @@ let CloudWatchLoggerService = class CloudWatchLoggerService {
|
|
110
108
|
brand,
|
111
109
|
secondary_key,
|
112
110
|
destination_ObjectType,
|
113
|
-
destination_ObjectId
|
114
|
-
source_ObjectType,
|
115
|
-
source_ObjectId
|
111
|
+
destination_ObjectId
|
116
112
|
};
|
117
113
|
await this.logToCloudWatch('error', logObject, logStreamName);
|
118
114
|
}
|
package/dist/interface.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
export interface ILogger {
|
2
|
-
log(requestedId: string, timestamp: string, component: string, source: string, destination: string, event: string, usecase: string, source_payload: any, destination_payload: any, logMessage: any, brand: any, secondary_key: string, destination_ObjectType: string, destination_ObjectId: string,
|
3
|
-
error(requestedId: string, timestamp: string, component: string, source: string, destination: string, event: string, usecase: string, source_payload: any, destination_payload: any, errorMessage: any, brand: any, secondary_key: string, destination_ObjectType: string, destination_ObjectId: string,
|
2
|
+
log(requestedId: string, timestamp: string, component: string, source: string, destination: string, event: string, usecase: string, source_payload: any, destination_payload: any, logMessage: any, brand: any, secondary_key: string, destination_ObjectType: string, destination_ObjectId: string, logStreamName: string): Promise<any>;
|
3
|
+
error(requestedId: string, timestamp: string, component: string, source: string, destination: string, event: string, usecase: string, source_payload: any, destination_payload: any, errorMessage: any, brand: any, secondary_key: string, destination_ObjectType: string, destination_ObjectId: string, logStreamName: string): Promise<any>;
|
4
4
|
}
|
package/package.json
CHANGED