console_log_handler 0.5.7

  • Installing
  • Versions
  • 87


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() {
    final Logger _logger = new Logger("test");

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

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


If you have problems


Copyright 2017 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



  • Inheritace instead of callbacks for makeObjectGroupt + makeStackTraceGroup 5c78652

v0.5 - 2017-12-07


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

v0.3 - 2017-12-06


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


  • Changed documentation in README 9ef9d39

v0.2.3 - 2016-11-16


v0.2.2 - 2016-11-16


v0.2.1 - 2015-12-03


  • 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: "^0.5.7"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support 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';
Version Uploaded Documentation Archive
0.5.7 Dec 11, 2017 Go to the documentation of console_log_handler 0.5.7 Download console_log_handler 0.5.7 archive
0.5.4 Dec 7, 2017 Go to the documentation of console_log_handler 0.5.4 Download console_log_handler 0.5.4 archive
0.5.0 Dec 7, 2017 Go to the documentation of console_log_handler 0.5.0 Download console_log_handler 0.5.0 archive
0.4.1 Dec 6, 2017 Go to the documentation of console_log_handler 0.4.1 Download console_log_handler 0.4.1 archive
0.3.1 Dec 6, 2017 Go to the documentation of console_log_handler 0.3.1 Download console_log_handler 0.3.1 archive
0.3.0 Dec 6, 2017 Go to the documentation of console_log_handler 0.3.0 Download console_log_handler 0.3.0 archive
0.2.3 Nov 16, 2016 Go to the documentation of console_log_handler 0.2.3 Download console_log_handler 0.2.3 archive
0.2.2 Nov 16, 2016 Go to the documentation of console_log_handler 0.2.2 Download console_log_handler 0.2.2 archive
0.2.1 Dec 3, 2015 Go to the documentation of console_log_handler 0.2.1 Download console_log_handler 0.2.1 archive
0.1.4 Jul 22, 2014 Go to the documentation of console_log_handler 0.1.4 Download console_log_handler 0.1.4 archive

All 14 versions...


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

  • Dart: 2.0.0-dev.54.0
  • pana: 0.11.1


Describes how popular the package is relative to other packages. [more]
76 / 100
Code health derived from static analysis. [more]
98 / 100
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: web

Primary library: package:console_log_handler/console_log_handler.dart with components: html.


  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • 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 API.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 5 hints.

    Run dartfmt to format lib/console_log_handler.dart.

    Run dartfmt to format lib/print_log_handler.dart.

    Similar analysis of the following files failed:

    • lib/shared/log_handler.dart (hint)
  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use console_log_handler.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.12.0 <2.0.0
ansicolor ^0.0.9 0.0.9 0.1.0
browser ^0.10.0 0.10.0+3
intl >=0.15.2 <1.0.0 0.15.6
logging >=0.11.3 <1.0.0 0.11.3+1
supports_color ^0.1.0 0.1.1
Transitive dependencies
path 1.5.1
Dev dependencies
grinder any
test any