raven_dart 0.1.1

Basic Usage

import 'package:raven_dart/raven_dart.dart';

main() {
  var dsn    = 'https://b70a31b3510c4cf793964a185cfe1fd0:b7d80b520139450f903720eb7991bf3d@example.com/1';

  // initialize the client with your DSN
  var client = new RavenClient(dsn);

  // captures a message as an info event 
  client.captureMessage("test");

  try {
    throw new Exception("test exception");
  } catch (exn, stacktrace) {
	// captures exception with stacktrace as an error event
    client.captureException(exn, stacktrace);
  }
}

Resources

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  raven_dart: "^0.1.1"

2. Install it

You can install packages from the command line:

$ pub get

Alternatively, your editor might support 'pub get'. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:raven_dart/raven_dart.dart';

About

Dart client for Sentry (https://www.getsentry.com)

Author

Email theburningmonk@gmail.com Yan Cui

Homepage

github.com/theburningmonk/raven-dart

Documentation

www.dartdocs.org/documentation/raven_dart/0.1.1/

Source code (hyperlinked)

www.crossdart.info/p/raven_dart/0.1.1/

Uploader

theburningmonk@gmail.com

Share