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-web.flutter-io.cn.

  • 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://[email protected]/example';
      options.addIntegration(LoggingIntegration());
    },
    appRunner: initApp, // Init your App.
  );
}

void initApp() {
  // your app code
}

Resources

  • Documentation
  • Forum
  • Discord
  • Stack Overflow
  • Twitter Follow

Libraries

sentry_logging