l
5.0.1, released a year ago by plugfox.dev
Cross‑platform logger with simple API for console output and optional colorization.
WASM-ready
What it does
Provides global logging functions (e.g., l.s, l.e, l.v) that write to the console on all supported platforms. It can capture prints, customize output, and expose a broadcast stream of log events.
AI-written summary of version 5.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need quick, zero‑boilerplate logging across mobile, web, and desktop.
- You want colored console output and the ability to listen to log streams.
Skip it when
- You require structured logging with JSON output to external services without additional setup.
- You need log persistence to files or databases out of the box.
Strengths
- Zero‑setup global API
- Supports colorized output and custom formatting
- Works on all major Flutter platforms
- Provides a broadcast stream for reactive handling
Weaknesses
- Limited built‑in log destinations (console only)
- No built‑in file or remote logging support
- Customization requires writing your own handlers
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'package:l/l.dart';
void main() {
l.s('shout');
l.e('error');
l.v('verbose level 1');
l.forEach((log) => print('* ${log.level}: ${log.message}'));
}Alternatives
Packages that do the same job and could replace l.
- logger
Mature, feature‑rich logger with file output and hierarchical logging levels.
83Compare - mason_logger
Simple logger focused on CLI tools with built‑in progress bars and emojis.
90Compare - talker_logger
Offers structured logs, theming, and integration with Talker devtools.
90Compare