talker_bloc_logger
5.2.0, released 4 weeks ago by frezycode.com
Lightweight and customizable logger for BLoC and Cubit built on Talker.
What it does
It logs BLoC and Cubit events, transitions, creations, and closings using the Talker logging base. You can attach it as a BlocObserver and filter logs or customize formatting options.
AI-written summary of version 5.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to log BLoC and Cubit events and state changes using Talker
- You need customizable BLoC logging with filters for specific blocs
Skip it when
- You are not using the BLoC state management library
- You prefer built-in bloc logging without Talker
Strengths
- Integrates seamlessly with Talker for unified application logging
- Extensive customization options through TalkerBlocLoggerSettings
- Supports event and transition filtering by bloc type
Weaknesses
- Tied specifically to the Talker logging ecosystem
- Relies on global Bloc.observer setup
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Assign TalkerBlocObserver to Bloc.observer during application initialization.
import 'package:talker_bloc_logger/talker_bloc_logger.dart';
Bloc.observer = TalkerBlocObserver();Alternatives
Packages that do the same job and could replace talker_bloc_logger.
- easy_logger
A lightweight Flutter logger with configurable levels, build‑mode control and custom printer.
42Compare - sentry_logging
Adds Sentry logging integration for the Dart logging package
90Compare - logger
An extensible logger for printing formatted logs with levels, custom filters, and printers.
83Compare - mixin_logger
Simple logger for Flutter that prints and saves logs to files.
75Compare
Works with
Packages commonly used together with talker_bloc_logger: ones it builds on, ones built on it, and its own family.
- bloctalker_bloc_logger depends on itA Dart library for implementing the BLoC pattern with Cubits and Blocs.
- talkertalker_bloc_logger depends on itAdvanced error handler and logger package for Flutter and Dart apps.
- talker_loggerSame familyLightweight, customizable logger with filters, formatters and log levels
- talker_flutterSame familyAdvanced error handler and logger package for Flutter and Dart applications
- talker_dio_loggerSame familyA lightweight, customizable logger for Dio HTTP client built on Talker.
- talker_riverpod_loggerSame familyLightweight and customizable Riverpod state management logger based on Talker.
- talker_http_loggerSame familyLightweight and customizable HTTP client logger based on Talker for Dart and Flutter.
- storage_viewSame familyFlutter widget to inspect and edit key‑value storage such as shared_preferences.