isolate_logger
1.0.14, released 5 months ago by aliasgarvohra.com
A logger utility utilizing Isolates to write console and file logs asynchronously.
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.
83Compare - talker_logger
If you prefer an advanced logging tool with extensive formatting and ecosystem integrations like Talker.
90Compare
Works with
Packages commonly used together with isolate_logger: ones it builds on, ones built on it, and its own family.
- archiveisolate_logger depends on itEncodes and decodes archive and compression formats such as zip, tar, gzip, and zlib.
- intlisolate_logger depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- path_providerisolate_logger depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- synchronizedisolate_logger depends on itLock mechanism to prevent concurrent access to asynchronous code.