Skip to content
pubscout

talker_bloc_logger

5.2.0, released 4 weeks ago by frezycode.com

Lightweight and customizable logger for BLoC and Cubit built on Talker.

WASM-readyRock solid
$ flutter pub add talker_bloc_logger
Source repository

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.

  • sentry_logging

    Adds Sentry logging integration for the Dart logging package

  • logger

    An extensible logger for printing formatted logs with levels, custom filters, and printers.

  • mixin_logger

    Simple logger for Flutter that prints and saves logs to files.

Works with

Packages commonly used together with talker_bloc_logger: ones it builds on, ones built on it, and its own family.