rollbar_dart 0.2.0-beta rollbar_dart: ^0.2.0-beta copied to clipboard
Connect your Dart applications to Rollbar for error reporting
rollbar-dart #
Dart notifier for reporting exceptions, errors and log messages to Rollbar.
This is a Dart-only implementation providing core notifier features. If you're building a Flutter application you should use rollbar-flutter
instead, which adds Flutter-specific features to the core functionality of this library.
rollbar-dart
is currently in Beta. We are looking for beta-testers and feedback! #
Usage #
A simple usage example:
import 'package:rollbar_dart/rollbar.dart';
void main() async {
var config = (ConfigBuilder('<YOUR ROLLBAR TOKEN HERE>')
..environment = 'production'
..codeVersion = '1.0.0')
.build();
var rollbar = Rollbar(config);
try {
throw ArgumentError('An error occurred in the dart example app.');
} catch (error, stackTrace) {
await rollbar.error(error, stackTrace);
}
}
See the example
directory for a complete example.
Documentation #
For complete usage instructions and configuration reference, see our rollbar-dart
SDK docs.
Release History & Changelog #
See our Releases page for a list of all releases and changes.
Help / Support #
If you run into any issues, please email us at support@rollbar.com.
For bug reports, please open an issue on GitHub.
License #
rollbar-dart
is free software released under the MIT License. See LICENSE for details.