Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kurotych/async-graphql-logger

Minimalistic logger extension for async-graphql library
https://github.com/kurotych/async-graphql-logger

gql

Last synced: about 6 hours ago
JSON representation

Minimalistic logger extension for async-graphql library

Awesome Lists containing this project

README

        

Simple logging GQL requests with duration in [async-graphql](https://github.com/async-graphql/async-graphql)

Run example
```bash
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
```