Installation
Add structured_logger as a dependency in your app or package pubspec.yaml:
dependencies:
structured_logger: ^0.1.2
Then fetch dependencies:
flutter pub get
Import
Import the package in the Dart file where you use the logger:
import 'package:structured_logger/structured_logger.dart';
Transitive dependency
The package declares http as a dependency (used by SinkSeq). You do not need to add it manually unless you inject a custom http.Client in tests.
Included example
The repository includes a sample app in example/. To run it:
cd example
flutter run
The example registers SimpleLineSink and DefaultSink and emits a demo log.