Logger Link
loggerLink is a link that lets you implement a logger for your tRPC client. It allows you to see more clearly what operations are queries, mutations, or subscriptions, their requests, and responses. The link, by default, prints a prettified log to the browser's console. However, you can customize the logging behavior and the way it prints to the console with your own implementations.
Usage
You can import and add the loggerLink to the links array as such:
client/index.tsts
client/index.tsts
loggerLink Options
The loggerLink function takes an options object that has the LoggerLinkOptions shape:
ts
ts
Reference
You can check out the source code for this link on GitHub.