summaryrefslogtreecommitdiff
path: root/jitsi-meet/logging_config.js
diff options
context:
space:
mode:
authorAntoine Ouvrard <antoine.ouvrard@nereide.fr>2020-11-23 10:28:32 +0100
committerAntoine Ouvrard <antoine.ouvrard@nereide.fr>2020-11-23 10:28:32 +0100
commitd3277d65639ef43230b71305922b5ccf33d86083 (patch)
tree87455d87a534c1bcb33a34290b840b68e573df96 /jitsi-meet/logging_config.js
initial commit
Diffstat (limited to 'jitsi-meet/logging_config.js')
-rw-r--r--jitsi-meet/logging_config.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/jitsi-meet/logging_config.js b/jitsi-meet/logging_config.js
new file mode 100644
index 0000000..ffdb605
--- /dev/null
+++ b/jitsi-meet/logging_config.js
@@ -0,0 +1,26 @@
+/* eslint-disable no-unused-vars, no-var */
+
+// Logging configuration
+var loggingConfig = {
+ // default log level for the app and lib-jitsi-meet
+ defaultLogLevel: 'trace',
+
+ // Option to disable LogCollector (which stores the logs on CallStats)
+ // disableLogCollector: true,
+
+ // The following are too verbose in their logging with the
+ // {@link #defaultLogLevel}:
+ 'modules/RTC/TraceablePeerConnection.js': 'info',
+ 'modules/statistics/CallStats.js': 'info',
+ 'modules/xmpp/strophe.util.js': 'log'
+};
+
+/* eslint-enable no-unused-vars, no-var */
+
+// XXX Web/React server-includes logging_config.js into index.html.
+// Mobile/react-native requires it in react/features/base/logging. For the
+// purposes of the latter, (try to) export loggingConfig. The following
+// detection of a module system is inspired by webpack.
+typeof module === 'object'
+ && typeof exports === 'object'
+ && (module.exports = loggingConfig);