file_logger 1.1.1 copy "file_logger: ^1.1.1" to clipboard
file_logger: ^1.1.1 copied to clipboard

A simple flutter file logger with a page to view the stored logs

Flutter Logger #

This package lets you store logs on the user device and view them without having to build a custom UI for that. You can also mark logs with a tag to view them in different pages.

How to use? #

1: Add this to your package's pubspec.yaml file:

dependencies:
  file_logger: LATEST_VERSION

2: Install packages from the command line:

$ flutter packages get

3: Import the package and start using it

import 'package:file_logger/flutter_logger.dart';

FlutterLogger.log(tag: 'network', logMessage: 'network is down!'); // log a message
FlutterLogger.log(tag: 'bluetooth', logMessage: 'bluetooth enabled'); // log a message

FlutterLogger.viewLogTagsPage(context); // show the log tags page
FlutterLogger.viewFileForTag('network', context); // show the network tag logs page
Log tags page Logs page showing logs for tealium tag
0
likes
150
points
248
downloads
screenshot

Publisher

verified publishermassimilianomassaro.it

Weekly Downloads

A simple flutter file logger with a page to view the stored logs

Repository (GitHub)
View/report issues

Topics

#logging

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, path_provider, share_plus

More

Packages that depend on file_logger