TelemetryLogger constructor

TelemetryLogger({
  1. Event<TelemetryLogger>? onDidChangeEnableStates,
  2. bool? isUsageEnabled,
  3. bool? isErrorsEnabled,
  4. void logUsage(
    1. String, [
    2. dynamic
    ])?,
  5. void dispose()?,
})

Implementation

factory TelemetryLogger({
  _i3.Event<_i3.TelemetryLogger>? onDidChangeEnableStates,
  _i2.bool? isUsageEnabled,
  _i2.bool? isErrorsEnabled,
  void Function(
    _i2.String, [
    _i2.dynamic,
  ])? logUsage,
  void Function()? dispose,
}) =>
    TelemetryLogger._(
      onDidChangeEnableStates: onDidChangeEnableStates ?? _i6.undefined,
      isUsageEnabled: isUsageEnabled,
      isErrorsEnabled: isErrorsEnabled,
      logUsage: logUsage == null ? null : _i5.allowInterop(logUsage),
      dispose: dispose == null ? null : _i5.allowInterop(dispose),
    );