Skip to content
pubscout

easy_logger

0.0.2, released 6 years ago by an unverified publisher

A lightweight Flutter logger with configurable levels, build‑mode control and custom printer.

WASM-ready
$ flutter pub add easy_logger

What it does

EasyLogger lets you log messages with optional levels and stack traces. You can enable or disable logging per Flutter build mode and customize the output printer. It provides helper methods like debug, info, warning, and error.

AI-written summary of version 0.0.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need quick, in‑app logging without external services
  • You want to control logging per build mode (debug/profile/release)
  • You need simple stack‑trace logging

Skip it when

  • You require structured or remote logging (e.g., to Sentry)
  • You need log persistence to files or databases
  • You need advanced formatting or log aggregation

Strengths

  • Very easy to add and configure
  • Fine‑grained control over build modes and levels
  • Custom printer allows any output format

Weaknesses

  • No built‑in support for file or network sinks
  • Limited formatting and no structured logging
  • No code‑generation or advanced features

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:easy_logger/easy_logger.dart';

final EasyLogger logger = EasyLogger(
  name: 'MyApp',
  defaultLevel: LevelMessages.debug,
  enableBuildModes: [BuildMode.debug, BuildMode.profile, BuildMode.release],
);

void main() {
  logger('App started');
  logger.debug('Debug message');
  logger.error('Error occurred', stackTrace: StackTrace.current);
}

Alternatives

Packages that do the same job and could replace easy_logger.

  • logger

    Provides similar simple logging with pretty output and optional file sinks

  • talker_logger

    Offers richer log formatting and integrates with the Talker ecosystem

Works with

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