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.
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.
42Compare - talker_logger
Lightweight, customizable logger with filters, formatters and log levels
90Compare - logging_appenders
Logging appenders for the dart logging package for print, file, and remote logging.
72Compare - logger
An extensible logger for printing formatted logs with levels, custom filters, and printers.
83Compare
Works with
Packages commonly used together with df_log: ones it builds on, ones built on it, and its own family.
- uuiddf_log depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- stack_tracedf_log depends on itProvides parsing, inspection, and readable formatting of Dart stack traces.
- webdf_log depends on itLightweight bindings for browser APIs via JS interop
- df_safer_dartdf_log depends on itFunctional error handling and safety types for Dart.