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

actions.ts 858B

123456789101112131415161718192021222324252627282930313233343536
  1. import { SET_LOGGING_CONFIG, SET_LOG_COLLECTOR } from './actionTypes';
  2. /**
  3. * Stores a {@code Logger.LogCollector} instance which will be uploading logs
  4. * to CallStats.
  5. *
  6. * @param {Logger.LogCollector} logCollector - The log collector instance to be
  7. * stored in the Redux state of base/logging feature.
  8. * @returns {{
  9. * type,
  10. * logCollector: Object
  11. * }}
  12. */
  13. export function setLogCollector(logCollector?: Object) {
  14. return {
  15. type: SET_LOG_COLLECTOR,
  16. logCollector
  17. };
  18. }
  19. /**
  20. * Sets the configuration of the feature base/logging.
  21. *
  22. * @param {Object} config - The configuration to set on the features
  23. * base/logging.
  24. * @returns {{
  25. * type: SET_LOGGING_CONFIG,
  26. * config: Object
  27. * }}
  28. */
  29. export function setLoggingConfig(config: Object) {
  30. return {
  31. type: SET_LOGGING_CONFIG,
  32. config
  33. };
  34. }