super_logging 3.1.0-dev.1 copy "super_logging: ^3.1.0-dev.1" to clipboard
super_logging: ^3.1.0-dev.1 copied to clipboard

outdated

The usual dart logging module, but with superpowers! Let's you easily log to stdout, disk and sentry.io.

Super Logging #

Sponsor

pub package

This package lets you easily log to:

  • stdout
  • disk
  • sentry.io
import 'package:super_logging/super_logging.dart';
import 'package:logging/logging.dart';

final logger = Logger("main");

main() async {
  // just call once, and let it handle the rest!
  await SuperLogging.main();
  
  logger.info("hello!");
}

(Above example will log to stdout and disk.)

Logging to sentry.io #

Just specify your sentry DSN.

SuperLogging.main(LogConfig(
  sentryDsn: 'https://xxxx@sentry.io/yyyy',
));

Log uncaught errors #

Just provide the contents of your main() function to super logging.

void main() {
  SuperLogging.main(LogConfig(
    body: _main,
  ));
}

void _main() {
  runApp(MyApp());
}

Read the docs to know about more customization options.

0
likes
65
pub points
21%
popularity

Publisher

unverified uploader

The usual dart logging module, but with superpowers! Let's you easily log to stdout, disk and sentry.io.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, intl, logging, path, path_provider, sentry, sentry_flutter

More

Packages that depend on super_logging