#graphql #logging #logger #gql #debugging

async-graphql-logger

Minimalistic logger extension for async-graphql library

2 releases

0.1.1 Apr 14, 2024
0.1.0 Jan 31, 2024

#375 in HTTP server

Download history 18/week @ 2024-02-19 2/week @ 2024-02-26 8/week @ 2024-03-11 1/week @ 2024-04-01 113/week @ 2024-04-08 40/week @ 2024-04-15

154 downloads per month

MIT license

16KB
125 lines

Simple logging GQL requests with duration in async-graphql

Run example

RUST_LOG=debug cargo run --example axum

[2024-04-14T11:00:31Z INFO  gql_logger] [QueryID: 547177987] query { healthCheck(input: 1) }
[2024-04-14T11:00:31Z DEBUG gql_logger] [QueryID: 547177987] Response: {healthCheck: true}
[2024-04-14T11:00:31Z INFO  gql_logger] [QueryID: 547177987] Duration: 102ms

Dependencies

~17–32MB
~532K SLoC