logger_console 3.0.2 copy "logger_console: ^3.0.2" to clipboard
logger_console: ^3.0.2 copied to clipboard

A logger project to show log in flutter. It's easy to read your log the same javascript.

Console log package #

Usage #

  • Download ServerLog application for mac os, window and linux

In the main.dart set logEnable = true for release mode

Console.logEnable = true;
```s

With android device, you need connect to ip of ServerLog app desktop server
```dart
Console.host = "Server Log IP";

Custom host

Console.uri = "your-custom-host";
import 'package:logger_console/logger_console.dart';
  
onShowLog() {
  Console.log("string or object...");

  Console.log([
    {"color": "red", "value": "#f00"},
    {"color": "green", "value": "#0f0"},
    {"color": "blue", "value": "#00f"},
    {"color": "cyan", "value": "#0ff"},
    {"color": "magenta", "value": "#f0f"},
    {"color": "yellow", "value": "#ff0"},
    {"color": "black", "value": "#000"},
  ]);

  Console.group('group data');
  Console.log("data", [
    {"color": "red", "value": "#f00"},
    {"color": "green", "value": "#0f0"},
    {"color": "blue", "value": "#00f"},
    {"color": "cyan", "value": "#0ff"},
    {"color": "magenta", "value": "#f0f"},
    {"color": "yellow", "value": "#ff0"},
    {"color": "black", "value": "#000"},
  ]);
  Console.groupEnd();
}

Credits #

5
likes
120
pub points
47%
popularity

Publisher

unverified uploader

A logger project to show log in flutter. It's easy to read your log the same javascript.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, nghinv_device_info, socket_channel

More

Packages that depend on logger_console