graphql / express-graphql

Create a GraphQL HTTP server with Express.
MIT License
6.34k stars 538 forks source link

Is there a way to customize a logger #774

Open Kostanos opened 3 years ago

Kostanos commented 3 years ago

We are using a JSON logging (pino module in particular) Express, and other our custom modules are using pino But the standard graphql responses like: [50] Must provide query string. for example are not json formatted. Is there a standard (easy) way to replace express-graphql logger with a custom one (pino in our case)

Thank you.

enisdenjo commented 1 year ago

This library has been deprecated and this repo will be archived soon. It has been superseded by graphql-http.

Furthermore, if you seek a fully-featured, well-maintained and performant server - I heavily recommend GraphQL Yoga!