Skip to content
pubscout

isolate_logger

1.0.14, released 5 months ago by aliasgarvohra.com

A logger utility utilizing Isolates to write console and file logs asynchronously.

$ flutter pub add isolate_logger
Source repository

What it does

IsolateLogger provides message logging into both the console and persistent files using background Isolates. It helps track user events, warnings, errors, and custom file outputs while avoiding performance degradation on the main thread. It also includes capabilities for log cleanup, custom file paths, and exporting logs as ZIP archives.

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

Use it when

  • You need to log events and errors to files persistently without blocking the UI thread.
  • Your application requires exporting logs as ZIP archives for debugging or user support.
  • You want custom per-feature file logging alongside standard console outputs.

Skip it when

  • You only require a simple console logger without file persistence or isolate support.
  • Your project targets a platform not supported by the package.

Strengths

  • Runs logging operations in an Isolate under the hood to prevent main thread blocking.
  • Supports custom file logging and log exporting to ZIP archives.
  • Includes auto-cleanup mechanisms for logs based on date.

Weaknesses

  • Requires explicit initialization before use, throwing an exception if called beforehand.
  • Adds overhead compared to simple synchronous loggers.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
5

Not documented

await IsolateLogger.instance.initLogger(
    timeFormat: LogTimeFormat.userFriendly,
    logIntoFile: false,
);
IsolateLogger.instance.logInfo(
    tag: "Auth",
    message: "User logged in successfully",
);

Alternatives

Packages that do the same job and could replace isolate_logger.

  • logger

    If you want a simpler, highly customizable console logger that doesn't necessarily require Isolate-based file management.

  • talker_logger

    If you prefer an advanced logging tool with extensive formatting and ecosystem integrations like Talker.

Works with

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