serverpod_logger_plus 0.1.0
serverpod_logger_plus: ^0.1.0 copied to clipboard
Plug-and-play structured logging for Serverpod. Routes flattened log messages to Serverpod's session log (Insights) while emitting fully structured JSON to stdout for GCP, AWS CloudWatch, Datadog, and [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add serverpod_logger_plusThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
serverpod_logger_plus: ^0.1.0Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:serverpod_logger_plus/serverpod_logger_plus.dart';