fimber 0.1.2 fimber: ^0.1.2 copied to clipboard
Extensible logging for Flutter - based on Timber on Andoird, using similar (as far as Dart lang allows) method API with same concepts for tree and planting logging tree.
import 'package:fimber/fimber.dart';
void main() {
// plant a tree - DebugTree()
Fimber.plantTree(DebugTree());
Fimber.d("Test message", ex: Exception("test error"));
var parameter = 100.0;
Fimber.w("Test message with parameter: $parameter");
var logger = FimberLog("MY_TAG");
logger.d("Test message", ex: Exception("test error"));
logger.w("Test message with parameter: $parameter");
// save auto tag generation on each call in call block.
Fimber.withTag("TEST BLOCK", (log) {
log.d("Started block");
for (var i = 0; i >= 1; i++) {
log.d("value: $i");
}
log.i("End of block");
});
}