talker 0.9.0 talker: ^0.9.0 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?
Here is the general scheme of the package and its main features
On All Platforms
Please add Windows and Linux screenshots😘
Get Started #
Follow these steps to use this package
Add dependency #
dependencies:
talker: ^0.9.0
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 Error catch (e, st) {
talker.handleError(e, st, 'Error in ...');
}
// Log your app info
talker.log('App is started'),
talker.error('App is started'),
talker.waring('App is started'),
///...
More examples you can get there or in docs
Customization #
Configure the error handler and logger for yourself
final talker = Talker();
// Handle exceptions and errors
talker.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.9.0
talker_flutter: ^0.9.0
Easy to use #
Add this code at something place of your Flutter application where you want to display logs
final talker = Talker();
TalkerScreen(talker: talker)
Result #
For help getting started with 😍 Flutter, view online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.