flutter_mxlogger
2.3.2, released 2 weeks ago by an unverified publisher
Cross‑platform high‑performance logging using mmap and optional AES encryption via FFI.
What it does
Provides synchronous file logging on iOS, Android, macOS, Windows and HarmonyOS with optional AES‑CFB‑128 encryption. It uses a native C/C++ core accessed through dart:ffi for fast writes and includes log‑file management and parsing utilities.
AI-written summary of version 2.3.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- Need fast native logging without Dart overhead
- Require encrypted log files on mobile/desktop
- Want a single logger shared between Dart and native code
Skip it when
- Targeting web platforms
- Prefer remote or cloud‑based logging services
- Want a pure‑Dart solution with no native binaries
Strengths
- Very low‑latency native writes via mmap
- Optional AES encryption for security
- Supports iOS, Android, macOS, Windows and HarmonyOS
- Provides tools for parsing and analyzing log files
Weaknesses
- Requires native build steps and platform‑specific configuration
- Increases app binary size with native libraries
- No support for web or pure Dart logging
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
On iOS/macOS set Xcode Strip Style to 'Non‑Global Symbols' to keep FFI symbols. Ensure the bundled libmxlogger.so (Android/HarmonyOS) or mxlogger_ffi.dll (Windows) is included. No extra permissions beyond normal file storage are needed.
import 'package:flutter_mxlogger/flutter_mxlogger.dart';
final logger = await MXLogger.initialize(
nameSpace: "flutter.mxlogger",
storagePolicy: MXStoragePolicyType.yyyyMMddHH,
consoleEnable: true,
cryptKey: "abcuioqbsdguijlk", // 16‑byte key
);
logger.debug('debug message');
logger.info('info message');
logger.error('error message');Alternatives
Packages that do the same job and could replace flutter_mxlogger.
Works with
Packages commonly used together with flutter_mxlogger: ones it builds on, ones built on it, and its own family.