colored_lumberdash 1.0.0-alpha

colored_lumberdash #

Plugin for lumberdash.

Prettier colors for your log messages on all major platforms.

Difference between colored_lumberdash and colorized_lumberdash is that this package uses AnsiPen to color output which does color your text, on win platform too.


How to use #

Add colored_lumberdash to your dependencies. Then pass an instance of ColoredLumberdash to lumberdash:

import 'package:colorize_lumberdash/colorize_lumberdash.dart';
import 'package:lumberdash/lumberdash.dart';

void main() {
  putLumberdashToWork(withClient: ColorizeLumberdash());
  logWarning('Hello Warning');
  logFatal('Hello Fatal!');
  logMessage('Hello Message!');
  logError(Exception('Hello Error'));

Use this package as a library

1. Depend on it

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

  colored_lumberdash: ^1.0.0-alpha

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or 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:colored_lumberdash/colored_lumberdash.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Mar 24, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Health suggestions

Format lib/src/colored_lumberdash.dart.

Run dartfmt to format lib/src/colored_lumberdash.dart.

Maintenance issues and suggestions

Provide a file named (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (lumberdash).

Package is pre-release. (-5 points)

Pre-release versions should be used with caution; their API can change in breaking ways.

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and colored_lumberdash.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
ansicolor ^1.0.2 1.0.2
lumberdash ^1.0.3 1.0.3 2.1.1
Transitive dependencies
meta 1.1.8