mtrust_better_log 1.0.0 copy "mtrust_better_log: ^1.0.0" to clipboard
mtrust_better_log: ^1.0.0 copied to clipboard

A library to enable logging in stacked apps

Stacked Log #

style: very good analysis Powered by Mason License: MIT Coverage

A library to enable logging in stacked apps


Usage #


final logger = BetterLog.instance;

final loggerInstance = logger.get('Test');

 loggerInstance
        ..d('Debug')
        ..i('Info')
        ..e('Error')
        ..w('Warn')
        ..wtf('WTF');

// Listen to logs
BetterLog.instance.logMessagesStream.listen((event) {
  print(event);
});


// Acces all logs
BetterLog.instance.logMessages;

Running Tests 🧪 #

To run all unit tests:

dart pub global activate coverage 1.2.0
dart test --coverage=coverage
dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info

To view the generated coverage report you can use lcov.

# Generate Coverage Report
genhtml coverage/lcov.info -o coverage/

# Open Coverage Report
open coverage/index.html
0
likes
135
points
185
downloads

Publisher

verified publishermtrust.io

Weekly Downloads

A library to enable logging in stacked apps

Repository (GitHub)
View/report issues

Documentation

API reference

License

ISC (license)

Dependencies

logger

More

Packages that depend on mtrust_better_log