Closed maxday closed 4 years ago
Hello,
It could be great to have an headerBlacklist option. This could be an array of headers name to omit from logs.
I know that this can be achievable using the requestFilter but I think that having a specific option will help.
Use case : don't log cookies, authorization bearer tokens etc.
I will prepare a PR for this change
What do you think ?
hi @maxday @bithavoc , think this can be closed now. Since the PR #217 was merged?
Released as express-winston@3.3.0. Please notice, there are breaking changes migrating from 3.x to 4.x
express-winston@3.3.0
Hello,
It could be great to have an headerBlacklist option. This could be an array of headers name to omit from logs.
I know that this can be achievable using the requestFilter but I think that having a specific option will help.
Use case : don't log cookies, authorization bearer tokens etc.
I will prepare a PR for this change
What do you think ?