console_log_handler 1.1.6

  • Readme
  • Changelog
  • Installing
  • 87

console_log_handler #

Shows your log-messages on the Console (Browser + Commandline)

Screenshot Screenshot

How to use it #

library unit.test;

import 'package:logging/logging.dart';

// Browser
import "package:console_log_handler/console_log_handler.dart";

// Commandline
import "package:console_log_handler/print_log_handler.dart";

void main() {
    configLogging(show: Level.INFO, transformer: transformerMessageOnly);
    final Logger _logger = new Logger("test");

    try {
        throw "Sample for exception";
    } on String catch( error, stacktrace) {

        _logger.severe("Caught error",error,stacktrace);


If you want to write your own LogRecord-Transformer - check out this GH-page and you'll see how simple it is.

If you have problems #

License #

Copyright 2018 Michael Mitterer (, 
IT-Consulting and Development Limited, Austrian Branch

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, 
software distributed under the License is distributed on an 
either express or implied. See the License for the specific language 
governing permissions and limitations under the License.

If this plugin is helpful for you - please (Circle) me.

Change Log for console_log_handler #

Console logger

Unreleased #

Bugs #

  • Samples hat wrong Dart-SDK 7a81211

Test #

  • Check if package works with Dart 2.x 298f654

v1.1 - 2018-06-28 #

Feature #

  • Added some predefined 'LogRecord'-transformers f8fe021
  • Dart 2.x ready e995684

Docs #

  • More info on how to write a LogRecord-Transformer fff845a

Refactor #

  • Changed default loglevel from Warning to Info 6ee9307

v1.0 - 2017-12-11 #

Refactor #

  • Inheritace instead of callbacks for makeObjectGroupt + makeStackTraceGroup 5c78652

v0.5 - 2017-12-07 #

Feature #

  • Removed 'logging'-import. Not necessary anymore 17ac126
  • Browser-Console andgit tag v0.4! Terminal-Console is supported b1fc60e

v0.3 - 2017-12-06 #

Feature #

  • Remove logging_handlers-dependency, intl-dependency is more relaxed now 70b074d

Docs #

  • Changed documentation in README 9ef9d39

v0.2.3 - 2016-11-16 #

Docs #

v0.2.2 - 2016-11-16 #

Docs #

v0.2.1 - 2015-12-03 #

Docs #

  • Moved to 'tests' instead of 'unittest', Grinder added 7afa41e

This was generated with Changelog for Dart

Use this package as a library

1. Depend on it

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

  console_log_handler: ^1.1.6

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:console_log_handler/console_log_handler.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 Apr 4, 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

Fix lib/print_log_handler.dart. (-2.96 points)

Analysis of lib/print_log_handler.dart reported 6 hints, including:

line 13 col 26: Unnecessary new keyword.

line 39 col 38: Use = to separate a named parameter from its default value.

line 63 col 30: Unnecessary new keyword.

line 64 col 33: Unnecessary new keyword.

line 65 col 31: Unnecessary new keyword.

Fix lib/shared/transformer.dart. (-1.99 points)

Analysis of lib/shared/transformer.dart reported 4 hints:

line 26 col 24: Unnecessary new keyword.

line 29 col 62: Unnecessary new keyword.

line 35 col 34: Unnecessary new keyword.

line 53 col 62: Unnecessary new keyword.

Fix lib/console_log_handler.dart. (-1.49 points)

Analysis of lib/console_log_handler.dart reported 3 hints:

line 12 col 26: Unnecessary new keyword.

line 38 col 38: Use = to separate a named parameter from its default value.

line 56 col 62: Use = to separate a named parameter from its default value.

Fix lib/shared/log_handler.dart. (-0.50 points)

Analysis of lib/shared/log_handler.dart reported 1 hint:

line 33 col 32: Avoid const keyword.

Maintenance suggestions

Package is getting outdated. (-21.10 points)

The package was last published 63 weeks ago.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

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 console_log_handler.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.0 1.0.2
intl >=0.15.2 <1.0.0 0.16.1
logging >=0.11.3 <1.0.0 0.11.4
Transitive dependencies
path 1.6.4
Dev dependencies
build_runner any
build_test any
build_web_compilers any
grinder any
test any