logster 0.1.0 copy "logster: ^0.1.0" to clipboard
logster: ^0.1.0 copied to clipboard

An extensible logger for applications, packages and plugins.

Logster for Dart/Flutter #

publisher version likes points popularity


An extensible logger for applications, packages and plugins.


Features #

Logging and Debugging Tools


Getting started #

To add the package, logster, in a project:

  1. Depend on it

    • Add logster under dependencies in the pubspec.yaml file

      dependencies:
        logster: any
      
    • Or run this command

      dart pub add logster
      
  2. Install it

    • From the terminal: Run

      dart pub get
      
  3. Import it

    • Add a corresponding import statement in the source code

      import 'package:logster/logster.dart';
      

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
var b = 2.0;
b.logs; // [double] 2.0
var c = 'x';
c.logs; // [String] x
var d = true;
d.logs; // [bool] true
var e = [a, b];
e.logs; // [List<num>] [10, 2.0]
var f = {c, d};
f.logs; // [CompactImmutableLinkedHashSet<Object>] {x, true}
var g = {a: b, c: d};
g.logs; // [InternalImmutableLinkedHashMap<Object, Object>] {10: 2.0, x: true}

1
likes
160
pub points
0%
popularity

Publisher

verified publisherg1joshi.dev

An extensible logger for applications, packages and plugins.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on logster