pino
pino copied to clipboard
Clarification on wildcard documentation
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?
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?
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.
Go for it! I suspect it's not supported but please verify.
@mcollina @jsumners Do you want to support this and if so is anyone already working on this?
If no PR exists that implements the functionality, then no one is working on it.