super_logging 0.0.1 copy "super_logging: ^0.0.1" to clipboard
super_logging: ^0.0.1 copied to clipboard

outdated

The usual dart logging module with superpowers!

Super Logging #

The usual dart logging module with superpowers!

Sponsor

pub package

This will log to

  • stdout
  • disk
  • sentry.io

How do I use this? #

import 'package:super_logging/super_logging.dart';

main() async {
  await SuperLogging.init();
}

use sentry.io #

This module can upload errors to sentry.io if you want.

await SuperLogging.init(
  // Passing this will enable sentry uploads.
  sentryDsn: "YOUR_SENTRY_DSN",

  // [optional] Has auto retry of uploads built right in!
  sentryAutoRetryDelay: Duration(seconds: 5),
  
  // [optional] Get current user info, which will be sent to sentry.
  // This appears in their web gui.
  getCurrentUser: (deviceInfo) {
    return User(
      username: "john",
      extras: deviceInfo,  // contains valuable info like device manufacturer, model etc.
    )
  },
)

use the disk #

await SuperLogging.init(
  // Passing this will enable logging to the disk.
  // New log files are created every day.
  String logFileDir: "LOGGING_DIRECORY",

  // This controls the max no of log files inside [logFileDir].
  // This prevents log files blowing up.
  // Older log files are deleted automatically.
  int maxLogFiles: 10,
)
0
likes
0
pub points
20%
popularity

Publisher

unverified uploader

The usual dart logging module with superpowers!

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

device_info, flutter, intl, logging, package_info, path, sentry

More

Packages that depend on super_logging