You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

logging_config.js 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* eslint-disable no-unused-vars, no-var */
  2. // Logging configuration
  3. var loggingConfig = {
  4. // default log level for the app and lib-jitsi-meet
  5. // defaultLogLevel: 'trace',
  6. defaultLogLevel: 'error',
  7. // defaultLogLevel: 'none',
  8. // Option to disable LogCollector (which stores the logs on CallStats)
  9. disableLogCollector: true,
  10. // The following are too verbose in their logging with the
  11. // {@link #defaultLogLevel}:
  12. 'modules/RTC/TraceablePeerConnection.js': 'error',
  13. 'modules/statistics/CallStats.js': 'error',
  14. 'modules/xmpp/strophe.util.js': 'error'
  15. };
  16. var loggingConfig_orig = {
  17. // default log level for the app and lib-jitsi-meet
  18. defaultLogLevel: 'trace',
  19. // Option to disable LogCollector (which stores the logs on CallStats)
  20. // disableLogCollector: true,
  21. // The following are too verbose in their logging with the
  22. // {@link #defaultLogLevel}:
  23. 'modules/RTC/TraceablePeerConnection.js': 'info',
  24. 'modules/statistics/CallStats.js': 'info',
  25. 'modules/xmpp/strophe.util.js': 'log'
  26. };
  27. /* eslint-enable no-unused-vars, no-var */
  28. // XXX Web/React server-includes logging_config.js into index.html.
  29. // Mobile/react-native requires it in react/features/base/logging. For the
  30. // purposes of the latter, (try to) export loggingConfig. The following
  31. // detection of a module system is inspired by webpack.
  32. typeof module === 'object'
  33. && typeof exports === 'object'
  34. && (module.exports = loggingConfig);