Pulse
Pulse copied to clipboard
LoggerStore + NetworkLogger + Redacted + Patterns
I've extracted fields that are responsible for redacting into its own struct Redacted from NetworkLogger.Configuration. I then created an internal type Redacted.Patterns that mimics what was inside NetworkLogger itself and what was inside NetworkLogger+Redacting.
This way we can set separately Redacted struct onto the NetworkLogger and LoggerStore configurations and they would follow the same approach.
We can also set same Redacted for both if we'd like to follow the same logic in both.
Let me know what you think 🙏
Addresses https://github.com/kean/Pulse/issues/327
P.S. Sorry for spamming with many comments here 😅