Skip to content
pubscout

df_log

0.7.3, released 3 weeks ago by dev-cetera.com

A Dart logging utility offering styled, tag‑filtered, in‑memory logs with JSON export and callbacks.

WASM-ready
$ flutter pub add df_log
Source repository

What it does

df_log replaces print() with colorful, emoji‑enhanced console output. It lets you assign tags, filter logs, store recent entries in memory, and export them as JSON lines. You can also attach callbacks for analytics or crash reporting.

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

Use it when

  • You need readable, colored console logs during development
  • You want tag‑based filtering and in‑memory log history
  • You need to export logs for external analysis or crash reporting

Skip it when

  • You require persistent file‑based logging
  • You need a full‑featured logging framework with log levels and sinks

Strengths

  • Beautiful ANSI‑styled output with emojis
  • Tag‑based filtering and per‑isolate context
  • In‑memory queue of recent logs
  • Export to JSONL and custom callbacks

Weaknesses

  • No built‑in file persistence
  • Limited to console styling; may not work on all terminals
  • No advanced log routing or multiple sinks

Setup

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

void main() {
  Log.start('App starting');
  Log.info('Loading user data', tags: {#auth});
  Log.err('Failed to load config');
  Log.stop('App shutting down');
}

Alternatives

Packages that do the same job and could replace df_log.

  • easy_logger

    A lightweight Flutter logger with configurable levels, build‑mode control and custom printer.

  • talker_logger

    Lightweight, customizable logger with filters, formatters and log levels

  • logging_appenders

    Logging appenders for the dart logging package for print, file, and remote logging.

  • logger

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

Works with

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