setLogLevel static method

void setLogLevel(
  1. VWOLog vwoLog
)

Set the log level for the VWO.

The vwoLog will be used to define the log level for the VWO.

Implementation

static void setLogLevel(VWOLog vwoLog) {
  switch (vwoLog) {
    case VWOLog.OFF:
      _vwoLog = 'off';
      break;
    case VWOLog.SEVERE:
      _vwoLog = 'severe';
      break;
    case VWOLog.WARNING:
      _vwoLog = 'warning';
      break;
    case VWOLog.CONFIG:
      _vwoLog = 'config';
      break;
    case VWOLog.INFO:
      _vwoLog = 'info';
      break;
    case VWOLog.ALL:
      _vwoLog = 'all';
      break;
    default:
      _vwoLog = 'off';
  }
}