Improved logging
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:
![](https://hasura.io/blog/content/images/2019/08/image-21.png)
http-log
in case of successHere is an example of an http-log
with a permission error. The level
has been changed from info
to error
.
![](https://hasura.io/blog/content/images/2019/08/image-22.png)
http-log
in case of errorNow 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):
![](https://hasura.io/blog/content/images/2019/08/image-17.png)
query-log
Here is an example of a query-log
:
![](https://hasura.io/blog/content/images/2019/08/image-19.png)
More details on this change can be found in the changelog.