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
Currently encountering a scenario where the desire is to use Microsoft.Extensions.Telemetry with the redaction capability for logging but per provider and not for all of them, as the logs are spread out to sources.
The requirement is to log to several log providers and depending on the log provider certain redaction will take place.
For example:
Custom ConsoleLogProvider to output everything as is, as it is customized for local debugging only
FileProvider, with redaction being either encrypting or masking depending on DataClassificationSet
OtherXProvider, with redaction being always encryption DataClassificationSet
ApplicationInsights, always redact with erasure or masking depending on DataClassificationSet
In addition the DataClassificationSet that needs encrypted between FileProvider and OtherXProvider will differ.
Any new addition later through code/configuration or otherwise would go as full erasure
In this example, in addition to adjusted categories they log, is desired so that the log provider each in the end outputs what they desire. ApplicationInsights would be for general insight and without the insight to marked data ever, the logs can be there but just masking and erasure, so it can be referred to in cases. The File / OtherXProvider with encryption would allow to be seen through a bureaucratic process.
Doesn't look like it is possible unless will try taking a copy of ExtendedLoggerFactory and adjust it, though I think I that would mean taking over a lot of internals.
Wondering if it is worth as a feature for logging redaction to have added capability for provider fine grain configuration, and if not set for a provider it will use the global defined?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Currently encountering a scenario where the desire is to use
Microsoft.Extensions.Telemetrywith the redaction capability for logging but per provider and not for all of them, as the logs are spread out to sources.The requirement is to log to several log providers and depending on the log provider certain redaction will take place.
For example:
In this example, in addition to adjusted categories they log, is desired so that the log provider each in the end outputs what they desire. ApplicationInsights would be for general insight and without the insight to marked data ever, the logs can be there but just masking and erasure, so it can be referred to in cases. The File / OtherXProvider with encryption would allow to be seen through a bureaucratic process.
Doesn't look like it is possible unless will try taking a copy of ExtendedLoggerFactory and adjust it, though I think I that would mean taking over a lot of internals.
Wondering if it is worth as a feature for logging redaction to have added capability for provider fine grain configuration, and if not set for a provider it will use the global defined?
Beta Was this translation helpful? Give feedback.
All reactions