dart_console_log_handler 1.0.0
dart_console_log_handler: ^1.0.0 copied to clipboard

A dart package to show your log messages in browser console. From now, you can see your dart log messages in the browser.

dart_console_log_handler #

A dart package to show your log messages in browser console. From now, you can see your dart log messages in the browser.

How to use it #

library unit.test;

import 'package:logging/logging.dart';

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

// Commandline
import "package:dart_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);
    }

}

0
likes
100
pub points
28%
popularity

A dart package to show your log messages in browser console. From now, you can see your dart log messages in the browser.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

ansicolor, flutter, intl, logging

More

Packages that depend on dart_console_log_handler