applogmanager 0.0.2 copy "applogmanager: ^0.0.2" to clipboard
applogmanager: ^0.0.2 copied to clipboard

A Flutter package for managing log files and sharing print statements..

AppLogManager #

A Flutter package for managing log files and sharing print statements.

Installation #

To use this package, add applogmanager as a dependency in your pubspec.yaml file.

dependencies:
  flutter:
    sdk: flutter
  applogmanager: ^0.0.2
Description
AppLogManager is a utility package that allows you to manage log files and share print statements in your Flutter app. It provides functions to append print statements to a log file, export log files to a zip archive, share log files via email, and clear log files for the current day.

Usage
To get started with AppLogManager, you first need to initialize it in your Flutter app:


import 'package:applogmanager/applogmanager.dart';

void main() {
  AppLogManager.initialize();
  runApp(MyApp());
}
Once initialized, you can use the provided functions:

Append Print Statement to Log File
To append a print statement to the log file, use the appendPrintStatementTotxtFile function:


AppLogManager.appendPrintStatementTotxtFile("This is a print statement.");
Export Log Files to Zip and Share
To export log files to a zip archive and share them via email, use the exportPrintLogFilesToZipAndShare function:


AppLogManager.exportPrintLogFilesToZipAndShare();
Clear Today's Log File
To clear the log file for the current day, use the clearTodayLogFile function:


AppLogManager.clearTodayLogFile();
Documentation
The package contains the following public functions:

void appendPrintStatementTotxtFile(String printStatement): Appends a print statement to the log file.
Future<void> exportPrintLogFilesToZipAndShare(): Exports log files to a zip archive and shares them via email.
Future<void> clearTodayLogFile(): Clears the log file for the current day.
Please refer to the Dart doc comments in the code for detailed information about each function.








0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A Flutter package for managing log files and sharing print statements..

License

unknown (license)

Dependencies

archive, cupertino_icons, device_info_plus, esys_flutter_share_plus, flutter, package_info_plus, path_provider, synchronized

More

Packages that depend on applogmanager