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.
A simple usage example:
import 'package:rollbar_dart/rollbar.dart';
void main() async {
final config = Config(
accessToken: 'YOUR-ROLLBAR-ACCESSTOKEN',
package: 'rollbar_dart_example',
);
await Rollbar.run(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.
For complete usage instructions and configuration reference, see our rollbar-dart
SDK docs.
See our Releases page for a list of all releases and changes.
If you run into any issues, please email us at [email protected].
For bug reports, please open an issue on GitHub.
rollbar-dart
is free software released under the MIT License. See LICENSE for details.