Back to projects

x_logger
Open Source2026Author & Maintainer
x_logger is a configurable logging package for Flutter, published on pub.dev. It gives apps named loggers (one per subsystem), log levels, and pluggable printers for pretty, JSON or colored output — all configured once and reused across the app.
Every record flows through three independent, swappable stages — a filter (whether to log), a printer (how it looks) and an output (where it goes) — so a single call can fan out to the console, an async on-device file, an in-app stream and a ring buffer at once. The history can be exported as a string or handed to a native share sheet, and it runs on Android, iOS, macOS, Windows and Linux. I built it during Wacyi to give the apps real, user-shareable diagnostics.
Highlights
- Named loggers per subsystem with cheap child() labels sharing one config
- Pluggable printers — Simple, boxed Pretty, JSON, or fully custom Callback
- ANSI color output with flexible header and timestamp formatting
- Composable filtering by level, name or predicate, globally or per output
- Multiple destinations — console, async file, stream and memory ring buffer
- Export and share the log file on Android, iOS, macOS, Windows and Linux
Tech stack
Screenshots
