Talker - package to handle dart application exceptions.
π The main goal of the project provide ability to understand where the error occurs in a short time
β
Can work with different state managements
β
Can work with any crash reporting tool (Firebase Crashlytics, Sentry, Your own, etc)
β
Flutter app logs UI output at screen
β
Integrated logs and exceptions history
β
Showing UI exception alerts
Easy to use
You can use Talker instance everywhere in your app
Simple and concise syntax will help you with this
final talker = Talker();
// Handle exceptions and errors
try {
// your code...
} on Exception catch (e, st) {
talker.handle(e, st, 'Exception with');
}
// Log your app info
talker.info('App is started');
talker.critical('β Houston, we have a problem!');
talker.error('π¨ The service is not available');
More examples you can get here
Customization
Talker package has a lot of customizations like:
β
Custom logs with any color and message
β
Logs history (contains all application info)
β
Custom Filters, Formatters, outputs
β
Observers for making custom logic
β
Data stream to handle logs in any point of code
I am launching a series of articles about this technology.
In each new article I will talk about a certain feature of this approach to error handling in the Flutter/dart application
π Go to the GitHub repository page!
π₯΅ Here you can see beautiful examples of usage and code snippets.
Show some β€οΈ and star the repo to support the project!
Top comments (8)
Thank you
Thank you mate for sharing this , New for me.
π₯π₯π₯π₯π₯π₯
πππ
hi bro whats up, good work thanks
Thanks π