Super Logging | Coderz Product

super_logging

Last updated:

0 purchases

super_logging Image
super_logging Images

Free

Languages

Categories

Add to Cart

Description:

super logging

Super Logging #


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!");
}
copied to clipboard
(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',
));
copied to clipboard
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());
}
copied to clipboard
Read the docs to know about more customization options.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.