structured_log_riverpod 0.1.0-dev.2
structured_log_riverpod: ^0.1.0-dev.2 copied to clipboard
StructuredLogRiverpodObserver — a ProviderObserver that turns the lifecycle of every Riverpod provider (created, updated, failed, removed) into structured_log entries. Works with flutter_riverpod as is.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add structured_log_riverpodWith Flutter:
$ flutter pub add structured_log_riverpodThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
structured_log_riverpod: ^0.1.0-dev.2Alternatively, 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_riverpod/structured_log_riverpod.dart';