sentry_crispin_transport 1.0.0+1 copy "sentry_crispin_transport: ^1.0.0+1" to clipboard
sentry_crispin_transport: ^1.0.0+1 copied to clipboard

Sentry Logger for Crispin

example/main.dart

import 'package:crispin/crispin.dart';
import 'package:sentry_crispin_transport/src/sentry_crispin_transport.dart';

void main() {
  /// This example assumes, you have already configured
  /// Sentry in the application
  Crispin().addTransport(
    SentryCrispinTransport(
      SentryCrispinTransportOptions(level: 'error'),
    ),
  );
  Crispin().warn('Not enabled');
  Crispin().info('Not enabled');
  try {
    throw Exception('Error for example');
  } catch (error, stackTrace) {
    Crispin().error(
      'Handling Error',
      error: error,
      stackTrace: stackTrace,
    );
  }
}
0
likes
140
pub points
0%
popularity

Publisher

verified publisherdelvefore.com

Sentry Logger for Crispin

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

crispin, sentry

More

Packages that depend on sentry_crispin_transport