quick_log
5.5.3, released 2 years ago by muha.dev
A configurable Dart logger for libraries and apps
WASM-ready
What it does
quick_log provides a Logger class that can print to console, write to file, or send logs to a backend. It supports filtering by tags, log levels, and can be used in tests via a stream writer.
AI-written summary of version 5.5.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- Need fine-grained control over library logs
- Want to test log output in unit tests
- Require cross-platform logging without external dependencies
Skip it when
- You only need a simple console print and don’t care about filtering or test integration
Strengths
- Highly configurable output and filtering
- Test-friendly LogStreamWriter
- Cross-platform support (android, ios, web, windows, macos, linux)
Weaknesses
- No built-in async or network transport
- Limited to console/file/backend via custom writers
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
import 'package:quick_log/quick_log.dart';
void main() {
const log = Logger('Example');
Logger.writer = ConsolePrinter(minLevel: LogLevel.info);
log.d('debug');
log.i('info');
}Alternatives
Packages that do the same job and could replace quick_log.
- fimber
Extensible logging for Dart and Flutter based on the Android Timber library.
50Compare - lumberdash
Simple and extensible logging API with support for custom plugins.
50Compare
Works with
Packages commonly used together with quick_log: ones it builds on, ones built on it, and its own family.
- clockquick_log depends on itA fakeable wrapper for dart:core clock APIs.
- rxdartquick_log depends on itImplementation of the ReactiveX API for asynchronous programming leveraging native Dart Streams.
- i18nBuilt on quick_logSimple i18n solution using YAML files to generate compile-safe Dart translation classes.