logz 0.0.7
logz: ^0.0.7 copied to clipboard
A lightweight, easy-to-use structured logging package for Dart and Flutter.
A lightweight, easy-to-use structured logging package for Dart and Flutter.
Features
- Write logs data into txt files
- Zip txt files into logs.zip with password to unzip
- Share logs.zip file to outside
Getting started
- Add to pubspec.yaml:
dependencies:
logz: ^0.0.1
- Import and initialize:
import 'package:logz/logz.dart';
final logZ = LogZ(zipPassword: 'PASSWORD_TO_UNZIP_FILE', logFilePrefix: 'FILE_NAME_PREFIX');
Usage
- Basic:
logZ.logToFile('Logging via logToFile function');
logZ.zipToShareLog();
final zipFile = await logZ.zipLog();
Additional information
- See /example for complete examples.
- Contributing: open issues or PRs on the repository; follow repository contribution guidelines.
- License: MIT (or replace with your chosen license).
- For questions or feature requests, open an issue on the project's issue tracker.