qz_log 0.0.1 copy "qz_log: ^0.0.1" to clipboard
qz_log: ^0.0.1 copied to clipboard

PlatformAndroid
outdated

Package to manage Logs in Flutter.

Qz_log

QzLog


Before using the QzLog package, it is necessary to configure the following permissions in androidManifest.xml:

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION"/>

Permissions are required to access and manipulate the generated files.

And still in androidManifest, inside the application tag, include the following key:

<application
        ...
        android:requestLegacyExternalStorage="true"

🎯 How to use it? #

  • Firstly, add QzLog as a dependency in your pubspec.yaml file.
  • And import this as in your dart file:
import 'package:qz_log/qz_log.dart';
  • To insert or record a Log record, use the insertLog function;
await QzLog()
          .insert(log: 'Test Log', exception: 'Function insert');
  • To check if there are Logs recorded in the database, just use the logExists function.
await QzLog().logExists();
  • To export the Log file, just use the exportLogs function. The file will be saved inside the Downloads/QzLog folder.
await QzLog().exportLogs();
  • To delete all Log records in the database and also the generated files, just use the deleteAll function.
await QzLog().deleteAll();

✨ Documentation #

Access documentation

Feito por: Jhonathan Queiroz
3
likes
100
points
18
downloads

Publisher

unverified uploader

Weekly Downloads

Package to manage Logs in Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

csv, equatable, external_path, flutter, path, path_provider, sqflite

More

Packages that depend on qz_log