Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kurotych/async-graphql-logger
- Owner: kurotych
- License: mit
- Created: 2024-01-31T17:34:02.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-14T11:01:53.000Z (7 months ago)
- Last Synced: 2024-10-31T11:48:07.824Z (8 days ago)
- Topics: gql
- Language: Rust
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```