Skip to content

theburningmonk/raven-dart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages