simple_logger
1.11.0, released 9 days ago by mono0926.com
Simple logger with optional caller info and custom formatting
What it does
Provides a lightweight API for logging messages with optional caller information and customizable output. It supports different log levels, custom prefixes, and can be configured to use dart:developer or print.
AI-written summary of version 1.10.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- Debugging during development
- Quick logging without heavy dependencies
- Need caller info for IDE navigation
Skip it when
- Production environments requiring structured logging or integration with external log aggregators
- Complex logging pipelines with filtering and routing
Strengths
- Easy to use API
- Optional caller info for IDE navigation
- Customizable formatting and prefixes
Weaknesses
- Limited to simple logging, no async stream or structured logs
- No built‑in integration with external log services
- Not suitable for high‑volume production logging
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
final logger = SimpleLogger();
logger.setLevel(Level.INFO, includeCallerInfo: true);
logger.info('Hello info!');Alternatives
Packages that do the same job and could replace simple_logger.
- logger
Standard Dart logging package with more features and better integration with dart:developer
83Compare - mason_logger
Provides a similar API with additional formatting options
90Compare - talker_logger
Offers a more feature‑rich logger with UI support
90Compare
Works with
Packages commonly used together with simple_logger: ones it builds on, ones built on it, and its own family.
- stack_tracesimple_logger depends on itProvides parsing, inspection, and readable formatting of Dart stack traces.
- loggingsimple_logger depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- firestore_refBuilt on simple_loggerCross-platform Firestore type-safe reference and document wrapper.
- mono_kitBuilt on simple_loggerA collection of convenient widgets and utils made by mono.