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

A simple logging solution built entirely in Dart. Supports logging for web applications as well as others.

nd_logs #

A logging solution for Flutter/Dart apps built purely in Dart.

Note that this is currently only tested for support on Android and iOS. Basic Web support has also been added. However, since web apps do not have access to the file-system as native apps do, the logging for web is session based and it is saved to Downloads only on the call of the export method.

Getting Started #

Add this code to begin:

  WidgetsFlutterBinding.ensureInitialized();
  await NDLogs.setupLogger();

You can start adding logs by simply calling:

NDLogs.logThis("My first log!");

To export logs,

final logFilePath = await NDLogs.exportLogFile();

To clear logs,

await NDLogs.clearLogs();

Future Plans #

  • Add better ui to HTML log file

Feel free to suggest/ request features as you may desire. However, I'll work on them as I get to them.

0
likes
130
points
33
downloads

Publisher

unverified uploader

Weekly Downloads

A simple logging solution built entirely in Dart. Supports logging for web applications as well as others.

Repository (GitHub)

Topics

#logging #user-logs

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, intl, path_provider

More

Packages that depend on nd_logs