jiti-meet/logging_config.js

27 lines
950 B
JavaScript
Raw Normal View History

/* 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
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}:
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',
2018-08-03 16:50:23 +00:00
'modules/xmpp/strophe.util.js': 'log'
};
/* 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);