blitz-js / blitz-js/legacy-framework

Filter mutations/queries logging with a custom function

Open
#36 8 comments 1 reaction 0 assignees View on GitHub
kind/feature-change legacy-framework status/ready-to-define-implementation
Dominant language
JavaScript
Stars
3
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### What do you want and why?

Ability to filter which logs will be printed in the console.

There is a lot of noise generated by queries such as `getCurrentUser`

### Possible implementation(s)

a function declared inside `blitz.config.js` that receives the message going to be logged and extra metadata when available.

### Additional context
I have thousands of logs like that that are not much useful, I would like to be able to disable them on
a per case basis

![image](https://user-images.githubusercontent.com/4562878/109499241-e7f0d280-7a94-11eb-93c3-6d5221a88abf.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.