flutter_fimber_filelogger 2.0.0 copy "flutter_fimber_filelogger: ^2.0.0" to clipboard
flutter_fimber_filelogger: ^2.0.0 copied to clipboard

discontinued
PlatformAndroidiOS

A file logger tree for Flutter Fimber (which includes an auto-clean mechanism)

File Logger Tree for Fimber #

Pub

A tree for the Fimber Flutter library that will write the logs to a File for each day.

Getting started #

1) Dependency setup #

First import the library to your project in your pubspec.yaml:

  • 1.2.x uses intl 0.17+
  • 1.1.x uses intl 0.16+
  • 1.0.x uses intl 0.15.x
flutter_fimber_filelogger: ^1.1.1+1

# or 

flutter_fimber_filelogger: ^1.0.2

2) Import the library in your Dart code #

import 'package:flutter_fimber_filelogger/flutter_fimber_filelogger.dart';

3) Plant the tree #

Fimber.plantTree(FileLoggerTree());  

Files #

The files will be stored in the [getApplicationDocumentsDirectory]/logs directory.

For each day, a new File will be created. An auto-clean mechanism is available, where you have to specify the number of days to keep the files onto the disk:

Fimber.plantTree(FileLoggerTree(numberOfDays: 5));  

To disable it, just pass a null value.

5
likes
110
pub points
39%
popularity

Publisher

verified publisherdaad.mobi

A file logger tree for Flutter Fimber (which includes an auto-clean mechanism)

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

flutter, flutter_fimber, intl, path, path_provider, synchronized

More

Packages that depend on flutter_fimber_filelogger