enable method

void enable()

Enable async error capture with current configuration

Implementation

void enable() {
  if (_isActive) {
    ObslyLogger.warn('AsyncErrorCapture already active');
    return;
  }

  if (_config == null) {
    ObslyLogger.error(
        'AsyncErrorCapture not configured. Call configure() first.');
    return;
  }

  _isActive = true;

  // Set up isolate error capture if enabled
  if (_config!.captureIsolateErrors) {
    _setupIsolateErrorCapture();
  }

  ObslyLogger.debug('AsyncErrorCapture enabled');
}