Skip to main content

structured_log_shelf 0.1.0-dev.1 copy "structured_log_shelf: ^0.1.0-dev.1" to clipboard
structured_log_shelf: ^0.1.0-dev.1 copied to clipboard

A shelf Middleware that logs every request as a structured_log entry and gives each handler a logger bound to the request_id; sensitive headers and query parameters are redacted.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add structured_log_shelf

With Flutter:

 $ flutter pub add structured_log_shelf

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  structured_log_shelf: ^0.1.0-dev.1

Alternatively, 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_shelf/structured_log_shelf.dart';
0
likes
160
points
684
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

A shelf Middleware that logs every request as a structured_log entry and gives each handler a logger bound to the request_id; sensitive headers and query parameters are redacted.

Homepage
Repository (GitHub)
View/report issues

Topics

#logging #shelf #http #middleware #server

License

MIT (license)

Dependencies

shelf, structured_log

More

Packages that depend on structured_log_shelf