2017-10-12 23:02:29 +00:00
|
|
|
/* eslint-disable no-unused-vars, no-var */
|
2018-08-03 16:50:23 +00:00
|
|
|
|
2016-11-21 21:08:39 +00:00
|
|
|
// Logging configuration
|
2017-10-12 23:02:29 +00:00
|
|
|
var loggingConfig = {
|
|
|
|
// default log level for the app and lib-jitsi-meet
|
2016-12-01 16:56:35 +00:00
|
|
|
defaultLogLevel: 'trace',
|
2017-10-12 23:02:29 +00:00
|
|
|
|
2016-11-23 14:33:55 +00:00
|
|
|
// Option to disable LogCollector (which stores the logs on CallStats)
|
2017-10-12 23:02:29 +00:00
|
|
|
// disableLogCollector: true,
|
|
|
|
|
2018-01-17 18:59:48 +00:00
|
|
|
// The following are too verbose in their logging with the
|
|
|
|
// {@link #defaultLogLevel}:
|
2018-08-03 16:50:23 +00:00
|
|
|
'modules/RTC/TraceablePeerConnection.js': 'info',
|
2018-01-03 23:30:54 +00:00
|
|
|
'modules/statistics/CallStats.js': 'info',
|
2021-07-28 19:38:35 +00:00
|
|
|
'modules/sdp/SDPUtil.js': 'info',
|
|
|
|
'modules/xmpp/JingleSessionPC.js': 'info',
|
|
|
|
'modules/xmpp/strophe.jingle.js': 'info',
|
2018-08-03 16:50:23 +00:00
|
|
|
'modules/xmpp/strophe.util.js': 'log'
|
2017-10-12 23:02:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* eslint-enable no-unused-vars, no-var */
|
2018-08-03 16:50:23 +00:00
|
|
|
|
|
|
|
// 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);
|