Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.07 KB

README.md

File metadata and controls

41 lines (27 loc) · 1.07 KB

logger_flutter_viewer

The package is an extension for logger. You can add it to any Flutter app. Just shake the phone to show the console.

The package is clone from logger_flutter, and some update:

Platform Support

Android iOS MacOS Web Linux Windows
✔️ ✔️

Getting Started

import 'package:logger/logger.dart';

class ScreenOutput extends LogOutput {
  @override
  void output(OutputEvent event) {
    LogConsole.output(event);
  }
}

var logger = Logger(
    printer: PrettyPrinter(printTime: true, colors: true, printEmojis: true),
    output: ScreenOutput());

logger.i("Just a info message");    

License

MIT

Copyright (c) 2013-present, Guomeng(Peter) Niu