#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

#1017 in HTTP server

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–29MB
~522K SLoC