Last updated:
0 purchases
logster
Logster for Dart/Flutter #
An extensible logger for applications, packages and plugins.
Features #
Logging and Debugging Tools
Getting started #
To add the package, logster, in a project:
Depend on it
Add logster under dependencies in the pubspec.yaml file
dependencies:
logster: any
copied to clipboard
Or run this command
dart pub add logster
copied to clipboard
Install it
From the terminal: Run
dart pub get
copied to clipboard
Import it
Add a corresponding import statement in the source code
import 'package:logster/logster.dart';
copied to clipboard
Usage #
To use the package, add the .logs extension to any variable, and it will print a log to the console along with its runtime type.
var a = 10;
a.logs; // [int] 10
copied to clipboard
var b = 2.0;
b.logs; // [double] 2.0
copied to clipboard
var c = 'x';
c.logs; // [String] x
copied to clipboard
var d = true;
d.logs; // [bool] true
copied to clipboard
var e = [a, b];
e.logs; // [List<num>] [10, 2.0]
copied to clipboard
var f = {c, d};
f.logs; // [CompactImmutableLinkedHashSet<Object>] {x, true}
copied to clipboard
var g = {a: b, c: d};
g.logs; // [InternalImmutableLinkedHashMap<Object, Object>] {10: 2.0, x: true}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.