async-graphql-logger

Crates.ioasync-graphql-logger
lib.rsasync-graphql-logger
version0.1.1
sourcesrc
created_at2024-01-31 17:45:11.445017
updated_at2024-04-14 11:02:16.131601
descriptionMinimalistic logger extension for async-graphql library
homepage
repositoryhttps://github.com/kurotych/async-graphql-logger
max_upload_size
id1122007
size55,383
Anatolii Kurotych (kurotych)

documentation

README

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
Commit count: 5

cargo fmt