flutter_fimber_filelogger 1.1.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 67

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.1.x uses intl 0.16+
  • 1.0.x uses intl 0.15.x
flutter_fimber_filelogger: ^1.1.0

# 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(FileLogerTree(numberOfDays: 5));  

To disable it, just pass a null value.

[1.1.0] - 7st September 2019

  • intl dependency upgraded to 0.16

[1.0.2] - 7st September 2019

  • Allow to pass a null "numberOfDays" which will disable the auto-clean mechanism
  • An example is now available in the repo

[1.0.1] - 1st September 2019

  • Fix a bug with DateFormat

[1.0.0] - 1st September 2019

  • Initial Release.

example/README.md

Example project #

A demo Flutter project for the Fimber Flutter File Logger library

Use this package as a library

1. Depend on it

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


dependencies:
  flutter_fimber_filelogger: ^1.1.0

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:flutter_fimber_filelogger/flutter_fimber_filelogger.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
34
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
67
Learn more about scoring.

We analyzed this package on Oct 9, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.4

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
flutter_fimber ^0.3.0 0.3.0
intl ^0.16.0 0.16.0
path ^1.6.2 1.6.4
path_provider ^1.2.0 1.3.0
synchronized ^2.1.0+1 2.1.0+1
Transitive dependencies
collection 1.14.11 1.14.12
fimber 0.2.0 0.3.2
meta 1.1.7
platform 2.2.1
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test