How to use the appcenter.getLogLevel function in appcenter

To help you get started, we’ve selected a few appcenter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / appcenter-sdk-react-native / DemoApp / AppCenterScreen.js View on Github external
async toggleLogging() {
    let logLevel = await AppCenter.getLogLevel();
    switch (logLevel) {
      case AppCenter.LogLevelAssert:
        logLevel = AppCenter.LogLevelNone;
        break;

      case AppCenter.LogLevelNone:
        logLevel = AppCenter.LogLevelVerbose;
        break;

      default:
        logLevel++;
    }
    await AppCenter.setLogLevel(logLevel);
    this.setState({ logLevel });
  }
github microsoft / appcenter-sdk-react-native / TestApp / MobileCenterScreen.js View on Github external
async componentDidMount() {
    const component = this;

    const appCenterEnabled = await AppCenter.isEnabled();
    component.setState({ appCenterEnabled });

    const installId = await AppCenter.getInstallId();
    component.setState({ installId });

    const logLevel = await AppCenter.getLogLevel();
    component.setState({ logLevel });
  }
github microsoft / appcenter-sdk-react-native / TestApp34 / AppCenterScreen.js View on Github external
async componentDidMount() {
    const component = this;

    const appCenterEnabled = await AppCenter.isEnabled();
    component.setState({ appCenterEnabled });

    const installId = await AppCenter.getInstallId();
    component.setState({ installId });

    const logLevel = await AppCenter.getLogLevel();
    component.setState({ logLevel });
  }
github microsoft / appcenter-sdk-react-native / DemoApp / AppCenterScreen.js View on Github external
async componentDidMount() {
    const component = this;

    const appCenterEnabled = await AppCenter.isEnabled();
    component.setState({ appCenterEnabled });

    const installId = await AppCenter.getInstallId();
    component.setState({ installId });

    const logLevel = await AppCenter.getLogLevel();
    component.setState({ logLevel });
  }
github microsoft / appcenter-sdk-react-native / TestAppTypescript / src / AppCenterScreen.tsx View on Github external
async componentDidMount() {
    const component = this;

    const appCenterEnabled = await AppCenter.isEnabled();
    component.setState({ appCenterEnabled });

    const installId = await AppCenter.getInstallId();
    component.setState({ installId });

    const logLevel = await AppCenter.getLogLevel();
    component.setState({ logLevel });
  }
github microsoft / appcenter-sdk-react-native / TestApp34 / AppCenterScreen.js View on Github external
async toggleLogging() {
    let logLevel = await AppCenter.getLogLevel();
    switch (logLevel) {
      case AppCenter.LogLevelAssert:
        logLevel = AppCenter.LogLevelNone;
        break;

      case AppCenter.LogLevelNone:
        logLevel = AppCenter.LogLevelVerbose;
        break;

      default:
        logLevel++;
    }
    await AppCenter.setLogLevel(logLevel);
    this.setState({ logLevel });
  }
github microsoft / appcenter-sdk-react-native / TestApp / MobileCenterScreen.js View on Github external
async toggleLogging() {
    let logLevel = await AppCenter.getLogLevel();
    switch (logLevel) {
      case AppCenter.LogLevelAssert:
        logLevel = AppCenter.LogLevelNone;
        break;

      case AppCenter.LogLevelNone:
        logLevel = AppCenter.LogLevelVerbose;
        break;

      default:
        logLevel++;
    }
    await AppCenter.setLogLevel(logLevel);
    this.setState({ logLevel });
  }
github microsoft / appcenter-sdk-react-native / TestAppTypescript / src / AppCenterScreen.tsx View on Github external
async toggleLogging() {
    let logLevel = await AppCenter.getLogLevel();
    switch (logLevel) {
      case AppCenter.LogLevelAssert:
        logLevel = AppCenter.LogLevelNone;
        break;

      case AppCenter.LogLevelNone:
        logLevel = AppCenter.LogLevelVerbose;
        break;

      default:
        logLevel++;
    }
    await AppCenter.setLogLevel(logLevel);
    this.setState({ logLevel });
  }