您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

functions.js 579B

12345678910111213141516171819202122
  1. // @flow
  2. import { getLogger as _getLogger } from 'jitsi-meet-logger';
  3. /**
  4. * Options for building the logger. We disable the callee info on RN because it's
  5. * almost always empty anyway.
  6. */
  7. const DEFAULT_OPTS = {};
  8. const DEFAULT_RN_OPTS = { disableCallerInfo: true };
  9. /**
  10. * Gets a logger for the given id.
  11. *
  12. * @param {string} id - Name for the logger.
  13. * @returns {Object} - The logger object.
  14. */
  15. export function getLogger(id: string) {
  16. const opts = navigator.product === 'ReactNative' ? DEFAULT_RN_OPTS : DEFAULT_OPTS;
  17. return _getLogger(id, undefined, opts);
  18. }