Skip to content

Commit

Permalink
docs: mention logging in smallrye-graphql-client
Browse files Browse the repository at this point in the history
  • Loading branch information
jmini authored Apr 15, 2024
1 parent 1e7403a commit 043d555
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/src/main/asciidoc/smallrye-graphql-client.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ public class Planet {
Now that we have the model classes, we can create the interface that represents the actual set
of operations we want to call on the remote GraphQL service.

[source,java]
----
@GraphQLClientApi(configKey = "star-wars-typesafe")
public interface StarWarsClientApi {
Expand Down Expand Up @@ -256,6 +257,17 @@ With this REST endpoint included in your application, you can simply send a GET
and the application will use an injected typesafe client instance to call the remote service, obtain
the films and planets, and return the JSON representation of the resulting list.

=== Logging

It is possible to log the request generated by the typesafe client and the response sent back by the server by changing the log level of the `io.smallrye.graphql.client` category to `TRACE` (See xref:logging.adoc#configure-the-log-level-category-and-format[Logging guide]).

This can be achieved by adding following lines to `application.properties`:

```
quarkus.log.category.\"io.smallrye.graphql.client\".level=TRACE
quarkus.log.category.\"io.smallrye.graphql.client\".min-level=TRACE
```

== Using the Dynamic client

For the dynamic client, the model classes are optional, because we can work with abstract
Expand Down

0 comments on commit 043d555

Please sign in to comment.