agora-appbuilder-core 4.0.25-beta-5 → 4.0.25-beta-7
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/package.json
CHANGED
|
@@ -168,7 +168,7 @@ export default class AppBuilderLogger implements Logger {
|
|
|
168
168
|
if (type === 'SET_MEETING_DETAILS') {
|
|
169
169
|
roomInfo = {...data[0]};
|
|
170
170
|
}
|
|
171
|
-
|
|
171
|
+
let columns = {
|
|
172
172
|
timestamp: Date.now(),
|
|
173
173
|
source,
|
|
174
174
|
type,
|
|
@@ -244,6 +244,9 @@ export default class AppBuilderLogger implements Logger {
|
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
if (ENABLE_AGORA_LOGGER_TRANSPORT && _transportLogger) {
|
|
247
|
+
delete columns?.session_id;
|
|
248
|
+
//@ts-ignore
|
|
249
|
+
columns.app_builder_session_id = this._session;
|
|
247
250
|
_transportLogger(logMessage, status, columns, contextInfo, data);
|
|
248
251
|
}
|
|
249
252
|
} catch (error) {
|
|
@@ -46,11 +46,17 @@ const getConfig = () => {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
const getTransportLogger = () => {
|
|
49
|
-
return (
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
return (
|
|
50
|
+
logMessage: string,
|
|
51
|
+
logType: StatusType,
|
|
52
|
+
columns: Object,
|
|
53
|
+
contextInfo: Object,
|
|
54
|
+
logContent: Object,
|
|
55
|
+
) => {
|
|
56
|
+
if (logType === 'error') {
|
|
57
|
+
DdLogs.error(logMessage, {...columns, contextInfo, logContent});
|
|
52
58
|
} else {
|
|
53
|
-
DdLogs.debug(
|
|
59
|
+
DdLogs.debug(logMessage, {...columns, contextInfo, logContent});
|
|
54
60
|
}
|
|
55
61
|
};
|
|
56
62
|
};
|
|
@@ -17,12 +17,18 @@ export const initTransportLayerForAgora = () => {
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
export const getTransportLogger = () => {
|
|
20
|
-
return (
|
|
20
|
+
return (
|
|
21
|
+
logMessage: string,
|
|
22
|
+
logType: StatusType,
|
|
23
|
+
columns: Object,
|
|
24
|
+
contextInfo: Object,
|
|
25
|
+
logContent: Object,
|
|
26
|
+
) => {
|
|
21
27
|
datadogLogs.logger.log(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
logMessage,
|
|
29
|
+
{...columns, contextInfo, logContent},
|
|
30
|
+
logType,
|
|
31
|
+
//logType === 'error' ? data[0] : undefined,
|
|
26
32
|
);
|
|
27
33
|
};
|
|
28
34
|
};
|