structured_log_bloc 0.1.0-dev.8
structured_log_bloc: ^0.1.0-dev.8 copied to clipboard
StructuredLogBlocObserver — a BlocObserver that turns the lifecycle, events, state changes and errors of every bloc and cubit into structured_log entries. Works with flutter_bloc as is.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add structured_log_blocWith Flutter:
$ flutter pub add structured_log_blocThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
structured_log_bloc: ^0.1.0-dev.8Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:structured_log_bloc/structured_log_bloc.dart';