|
@@ -1,16 +1,16 @@
|
1
|
|
-import { getCurrentConference } from '../../react/features/base/conference';
|
|
1
|
+
|
|
2
|
+import { getCurrentConference } from '../conference';
|
2
|
3
|
|
3
|
4
|
/**
|
4
|
|
- * Implements logs storage through the CallStats.
|
5
|
|
- *
|
6
|
|
- * FIXME: move to base/logging
|
|
5
|
+ * Implements log storage interface from the jitsi-meet-logger lib. Captured
|
|
6
|
+ * logs are sent to CallStats.
|
7
|
7
|
*/
|
8
|
8
|
export default class JitsiMeetLogStorage {
|
9
|
9
|
|
10
|
10
|
/**
|
11
|
11
|
* Creates new <tt>JitsiMeetLogStorage</tt>.
|
12
|
12
|
*
|
13
|
|
- * @param {Function} getState - the Redux store's {@code getState} method.
|
|
13
|
+ * @param {Function} getState - The Redux store's {@code getState} method.
|
14
|
14
|
*/
|
15
|
15
|
constructor(getState) {
|
16
|
16
|
/**
|
|
@@ -33,7 +33,7 @@ export default class JitsiMeetLogStorage {
|
33
|
33
|
* A conference is considered joined when the 'conference' field is defined
|
34
|
34
|
* in the base/conference state.
|
35
|
35
|
*
|
36
|
|
- * @return {boolean} <tt>true</tt> when this storage is ready or
|
|
36
|
+ * @returns {boolean} <tt>true</tt> when this storage is ready or
|
37
|
37
|
* <tt>false</tt> otherwise.
|
38
|
38
|
*/
|
39
|
39
|
isReady() {
|
|
@@ -45,8 +45,10 @@ export default class JitsiMeetLogStorage {
|
45
|
45
|
/**
|
46
|
46
|
* Called by the <tt>LogCollector</tt> to store a series of log lines into
|
47
|
47
|
* batch.
|
48
|
|
- * @param {string|object[]}logEntries an array containing strings
|
|
48
|
+ *
|
|
49
|
+ * @param {Array<string|Object>} logEntries - An array containing strings
|
49
|
50
|
* representing log lines or aggregated lines objects.
|
|
51
|
+ * @returns {void}
|
50
|
52
|
*/
|
51
|
53
|
storeLogs(logEntries) {
|
52
|
54
|
const conference = getCurrentConference(this.getState());
|