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

API option `ignore` should accept an array

Open thw0rted opened this issue 4 years ago • 0 comments

There are two prettify options that take a list of strings, errorLikeObjectKeys and ignore. The former accepts an array of strings, while the latter wants a comma-separated list.

I actually came here to suggest that ignore should run trim on all values -- ignore: "pid, hostname" is treated as ignore: "pid" because the space in the value causes hostname not to match. But after looking at the docs, and seeing how errorLikeObjectKeys is handled, it would be more consistent to accept an array (while retaining backward compatibility with the CSV version).

thw0rted avatar Aug 29 '19 12:08 thw0rted