call method

  1. @override
void call(
  1. Hub hub,
  2. SentryOptions options
)

A Callable method for the Integration interface

Implementation

@override
void call(Hub hub, SentryOptions options) {
  _logger = options.logger;

  _tree = SentryTree(hub,
      minEventLevel: minEventLevel, minBreadcrumbLevel: minBreadcrumbLevel);

  Timber.instance.plant(_tree);
  _logger?.call(SentryLevel.debug, 'SentryTimberIntegration installed.');
  options.sdk.addIntegration('sentryTimberIntegration');
}