sentry_logging 8.11.2 copy "sentry_logging: ^8.11.2" to clipboard
sentry_logging: ^8.11.2 copied to clipboard

An integration which adds support for recording log from the logging package.


Sentry integration for logging package #

package build pub likes popularity pub points
sentry_logging build pub package likes popularity pub points

Integration for the logging package.

Usage

  • Sign up for a Sentry.io account and get a DSN at https://sentry.io.

  • Follow the installing instructions on pub.dev.

  • Initialize the Sentry SDK using the DSN issued by Sentry.io and add the LoggingIntegration

import 'package:sentry/sentry.dart';
import 'package:sentry_logging/sentry_logging.dart';

Future<void> main() async {
  await Sentry.init(
    (options) {
      options.dsn = 'https://example@sentry.io/example';
      options.addIntegration(LoggingIntegration());
    },
    appRunner: initApp, // Init your App.
  );
}

void initApp() {
  // your app code
}

Resources

  • Flutter docs
  • Dart docs
  • Discussions
  • Discord Chat
  • Stack Overflow
  • Twitter Follow
22
likes
160
points
65.2k
downloads

Publisher

verified publishersentry.io

Weekly Downloads

An integration which adds support for recording log from the logging package.

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

logging, sentry

More

Packages that depend on sentry_logging