Skip to content
pubscout

fimber

0.7.0, released 3 years ago by an unverified publisher

Extensible logging for Dart and Flutter based on the Android Timber library.

WASM-ready
$ flutter pub add fimber
Source repository

What it does

Fimber provides extensible and structured logging for Dart and Flutter applications. It mimics the Android Timber library API by utilizing concepts like trees and planting logging trees to output debug, verbose, info, warn, and error messages.

AI-written summary of version 0.7.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want structured logging with support for custom trees, tags, and formatting.
  • You are familiar with the Timber logging concept from Android.

Skip it when

  • You need heavy remote crash reporting or analytics solutions out of the box without custom integration.

Strengths

  • Supports multiple log levels and colorized log output via ANSI styles.
  • Allows custom log line formatters using tokens.
  • Cross-platform support including Flutter Web.

Weaknesses

  • File logging functionality has been moved to a separate package (`fimber_io`).
  • Auto-tag generation from stack traces can add a slight performance cost if overused.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0

Plant a logging tree in your main function before using Fimber.

void main() {
  Fimber.plantTree(DebugTree());
  Fimber.i("Test message");
}

Alternatives

Packages that do the same job and could replace fimber.

Works with

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