file_logger 1.1.1 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