pino icon indicating copy to clipboard operation
pino copied to clipboard

Clarification on wildcard documentation

Open mmhoang opened this issue 3 years ago • 5 comments
trafficstars

Hello! I'd like to be able to use wildcards in this way:

// Need to redact my_secret, my_other_secret, another_secret.

paths: ['*secret'],

It is unclear from the documentation if this is supported, or whether wildcards only pertain to whole keys and not parts of key words?

mmhoang avatar Apr 05 '22 14:04 mmhoang

Have you tried using it in this way? I don't remember from the top of my head. In case it's not, could you produce an exmaple?

mcollina avatar Apr 06 '22 14:04 mcollina

I have not tried it... unfortunately the context that we use this for is error logging of sensitive data, so I would need to construct an artificial example to replicate it.

mmhoang avatar Apr 06 '22 15:04 mmhoang

Go for it! I suspect it's not supported but please verify.

mcollina avatar Apr 06 '22 22:04 mcollina

@mcollina @jsumners Do you want to support this and if so is anyone already working on this?

dtieber avatar Oct 03 '22 11:10 dtieber

If no PR exists that implements the functionality, then no one is working on it.

jsumners avatar Oct 03 '22 12:10 jsumners