logmaster 0.1.1

  • README.md
  • Installing
  • Versions
  • 32

Logmaster

A logger intended to catch exceptions or simply report activity, then post it to a server or store locally fo further inspection.

The idea is that catching errors and forming error messages is separate from actually reporting them. By loading report-adapters on demand, we can use this library both in the backend and in the frontend.

Use this package as a library

1. Depend on it

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


dependencies:
  logmaster: ^0.1.1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:


import 'package:logmaster/logmaster.dart';
  
Version Uploaded Documentation Archive
0.1.1 Dec 17, 2016 Go to the documentation of logmaster 0.1.1 Download logmaster 0.1.1 archive
0.1.0 May 20, 2016 Go to the documentation of logmaster 0.1.0 Download logmaster 0.1.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
90
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
27
Overall:
Weighted score of the above. [more]
32
Learn more about scoring.

We analyzed this package on Aug 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.11.8

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:logmaster/logmaster.dart.

Issues and suggestions

Maintain CHANGELOG.md.

Changelog entries help clients to follow the progress in your code.

Add SDK constraint in pubspec.yaml.

For information about setting SDK constraint, please see https://www.dartlang.org/tools/pub/pubspec#sdk-constraints.

Package is getting outdated.

The package was released 85 weeks ago.

Package is pre-v1 release.

While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction of the API.

The description is too long.

Search engines will display only the first part of the description. Try to keep it under 180 characters.

Maintain an example.

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use logmaster.dart.

Fix lib/logmaster.dart.

Analysis of lib/logmaster.dart reported 1 hint:

line 2 col 8: Unused import: 'dart:async'.

Format lib/report_adapters/console_report_adapter.dart.

Run dartfmt to format lib/report_adapters/console_report_adapter.dart.

Format lib/report_adapters/http_report_adapter.dart.

Run dartfmt to format lib/report_adapters/http_report_adapter.dart.

Format lib/report_adapters/logfile_report_adapter.dart.

Run dartfmt to format lib/report_adapters/logfile_report_adapter.dart.

Dependencies

Package Constraint Resolved Available
Dev dependencies
test >=0.12.0