talker 0.7.0+1 talker: ^0.7.0+1 copied to clipboard
Advanced error handler and logger package for flutter and dart apps
Talker
Advanced exception handling and logging for dart/flutter applications 🚀
Log your app actions, catch and handle your app exceptions and errors
Show some ❤️ and star the repo to support the project!
How it works?
On All Platforms
Please add Windows and Linux screenshots😘
Get Started #
Follow these steps to use this package
Add dependency #
dependencies:
talker: ^0.7.0
Easy to use #
You can use Talker instance everywhere in your app
Simple and concise syntax will help you with this
// Handle exceptions and errors
try {
// your code...
} on Error catch (e, st) {
Talker.instance.handleError(e, 'Error in ...', st);
}
// Log your app info
Talker.instance.log('App is started'),
Talker.instance.error('App is started'),
Talker.instance.waring('App is started'),
///...
More examples you can get there or in docs
Customization #
Configure the error handler and logger for yourself
// Handle exceptions and errors
Talker.instance.configure(
/// Your own observers to handle errors's exception's and log's
observers: [],
settings: const TalkerSettings(
/// Your own registered types of error's exception's and log's
registeredTypes: [HttpTalkerLog],
maxHistoryItems: 1000,
useHistory: true,
useConsoleLogs: true,
),
);
More examples you can get there or in docs
Use Talker Flutter #
Often you need to check what happening in the application when there is no console at hand. There is a talker_flutter package for this situations
Add dependency #
dependencies:
talker: ^0.7.0
talker_flutter: ^0.5.4
Easy to use #
Add this code at something place of your Flutter application where you want to display logs
TalkerScreen(talker: Talker.instance)
Result #
TODO:
- LogLevel as a model with customization
- ErrorLevel as a model with customization
- Filter for logs in UI (talker_flutter)
- Flutter Talker customization / filters
For help getting started with 😍 Flutter, view online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.