Skip to content
pubscout

simple_logger

1.11.0, released 9 days ago by mono0926.com

Simple logger with optional caller info and custom formatting

WASM-readyRock solid
$ flutter pub add simple_logger
Source repository

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.

Works with

Packages commonly used together with simple_logger: ones it builds on, ones built on it, and its own family.