Improved logging

09 August, 2019 | 1 min read

The v1.0.0-beta.3 release added several exciting enhancements to the GraphQL engine's logs. The following log types are now enabled by default: startup, http-log, webhook-log and websocket-log. The detailed documentation of these log types can be found here.

Here is an example of an http-log of a successful query:

http-log in case of success

Here is an example of an http-log with a permission error. The level has been changed from info to error.

http-log in case of error

Now we'll add query-log that was also introduced with the same release but is not enabled by default. We can set the following environment variable (in this example on Heroku):

Adding environment variable for query-log

Here is an example of a query-log:

Query log

More details on this change can be found in the changelog.

Close

Get Started with GraphQL Now

Hasura Cloud gives you a fully managed, production ready GraphQL API as a service to help you build modern apps faster.

HasuraCon, Our user conference is back!

We’re bringing together users from all over the world for a 2 day celebration of all things Hasura!
Discover the amazing products developers are building with Hasura. Level up your Hasura skills with live, in-depth workshops. Hear about all the big features and updates we are making to the Hasura GraphQL Engine and Hasura Cloud. Join us on 23rd & 24th June 2021!

Marion

Marion

Works at Hasura.

Read More

hand
Ready to get started?
Start for free on Hasura Cloud or you could contact our sales team for a detailed walk-through on how Hasura may benefit your business.
Stay in the know
Sign up for full access to our community highlights, new features, and occasional baby animal gifs! Oh, and we have a strict no-spam rule. ✌️