You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using slog in a new production microservice. We make some API calls, and I want to be able to configure log masking for sensitive fields. For example, I want to mask out certain fields in the request/response bodies or certain headers by name. I don't see this supported in any of the modules I've checked, I believe this is a new feature.
Currently for a work around, I'm just doing an in memory map before sending to the logger, however I would prefer the logger handled this so I wouldn't have to write a bunch of custom code to iterate over collections. I also use the slog-json crate.
Any ideas or recommendations?
The text was updated successfully, but these errors were encountered:
Another approach would be to write your own macros debug and alikes and in it do the heavy lifting. These would have potential to have faster runtime perf.
I'm using slog in a new production microservice. We make some API calls, and I want to be able to configure log masking for sensitive fields. For example, I want to mask out certain fields in the request/response bodies or certain headers by name. I don't see this supported in any of the modules I've checked, I believe this is a new feature.
Currently for a work around, I'm just doing an in memory map before sending to the logger, however I would prefer the logger handled this so I wouldn't have to write a bunch of custom code to iterate over collections. I also use the slog-json crate.
Any ideas or recommendations?
The text was updated successfully, but these errors were encountered: