console_log_handler 0.2.1 copy "console_log_handler: ^0.2.1" to clipboard
console_log_handler: ^0.2.1 copied to clipboard

outdatedDart 1 only

Console logger

console_log_handler #

####Shows your log-messages on the Console####

Screenshot

###How to use it###

library unit.test;

import 'package:logging/logging.dart';
import "package:console_log_handler/console_log_handler.dart";

void main() {
    configLogging();
    final Logger _logger = new Logger("test");

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

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

}

void configLogging() {
    // now control the logging.
    // Turn off all logging first
    Logger.root.level = Level.INFO;
    Logger.root.onRecord.listen(new LogConsoleHandler());
}

###If you have problems###

###History ###

  • 0.1.4 - Initial release

###License###

Copyright 2014 Michael Mitterer (office@mikemitterer.at), 
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

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, 
software distributed under the License is distributed on an 
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
either express or implied. See the License for the specific language 
governing permissions and limitations under the License.

###Thanks###

I used Chris Buckett's (chrisbuckett@gmail.com) logging_handler library for my work. Thank's Chris!

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