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.

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. }