serverpod_logger_plus 0.4.0
serverpod_logger_plus: ^0.4.0 copied to clipboard
Plug-and-play structured logging for Serverpod: dual-routes each log to Serverpod Insights and structured JSON on stdout for GCP, Datadog, Elastic, and more.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add serverpod_logger_plusWith Flutter:
$ flutter 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.4.0Alternatively, 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:serverpod_logger_plus/serverpod_logger_plus.dart';