Skip to content
pubscout

chirp

0.9.0, released 6 months ago by pascalwelsch.com

Lightweight Dart logger with automatic caller info, structured logs, and rotating file writers.

WASM-ready
$ flutter pub add chirp
Source repository

What it does

Chirp provides a zero‑configuration logger that automatically includes file, line, and class information. It supports structured logging, multiple writers, lazy message construction, and extensible formatting.

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

Use it when

  • Need quick, structured logging in Dart or Flutter
  • Want automatic caller info without boilerplate
  • Require rotating file writers for long‑running services
  • Need lazy logging to avoid expensive string interpolation

Skip it when

  • You need a full UI logging framework with visual dashboards
  • Your app already uses a comprehensive logging solution like log4dart or a custom logger

Strengths

  • Zero configuration, works out of the box
  • Extensible writers and formatters, including rotating file support
  • Lazy logging APIs to avoid unnecessary work
  • Automatic caller info and instance tracking

Weaknesses

  • No built‑in UI or visual log viewer
  • Not a full‑featured logging framework with metrics or dashboards
  • Requires Dart/Flutter environment, not a general logging library for all languages

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
3
import 'package:chirp/chirp.dart';

void main() {
  Chirp.root = ChirpLogger()
    .addConsoleWriter(formatter: RainbowMessageFormatter());
  Chirp.info('App started');
}

Alternatives

Packages that do the same job and could replace chirp.

Works with

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