pino-pretty icon indicating copy to clipboard operation
pino-pretty copied to clipboard

Hide object based on logLevel?

Open jedahan opened this issue 3 years ago • 2 comments

I'd like to hide the object printing for INFO loglevel, but not ERROR.

Alternatively, I'd like to hide object printing based on some other key, if possible.

What is the best way to achieve this?

jedahan avatar Apr 29 '21 16:04 jedahan

I don't think it's currently possible with this library :/.

mcollina avatar Apr 29 '21 19:04 mcollina

Interestingly enough, hideObject should still show error logs, but thats not the behavior i see

jedahan avatar Apr 29 '21 20:04 jedahan