https://github.com/scientifichackers/super_logging
The usual dart logging module with superpowers!
https://github.com/scientifichackers/super_logging
Last synced: 2 months ago
JSON representation
The usual dart logging module with superpowers!
- Host: GitHub
- URL: https://github.com/scientifichackers/super_logging
- Owner: scientifichackers
- License: mit
- Created: 2019-04-23T20:22:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-17T18:51:02.000Z (over 3 years ago)
- Last Synced: 2025-04-06T17:04:39.300Z (3 months ago)
- Language: Dart
- Size: 45.9 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Super Logging
[](https://www.jaaga.in/labs)
[](https://pub.dartlang.org/packages/super_logging)
This package lets you easily log to:
- stdout
- disk
- sentry.io```dart
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.
```dart
SuperLogging.main(LogConfig(
sentryDsn: 'https://[email protected]/yyyy',
));
```## Log uncaught errors
Just provide the contents of your `main()` function to super logging.
```dart
void main() {
SuperLogging.main(LogConfig(
body: _main,
));
}void _main() {
runApp(MyApp());
}
```[Read the docs](https://pub.dev/documentation/super_logging/latest/super_logging/super_logging-library.html) to know about more customization options.