Пример #1
0
 public bool TryCreateLogEventProperty(string name, object value, ILogEventPropertyValueFactory propertyValueFactory, out LogEventProperty property)
 {
     property = new LogEventProperty(
         name: _sensitiveInformationType?.ToString() ?? name,
         value: propertyValueFactory.CreatePropertyValue(value).AsSensitive());
     return(true);
 }
 public static IDisposable PushProperty(SensitiveInformationType name, object value)
 {
     return(PushProperty(name.ToString(), value));
 }
Пример #3
0
 public static ILogger WithSensitiveInformation(this ILogger logger, SensitiveInformationType sensitiveInformationType, object value)
 {
     return(logger.WithSensitiveInformation(sensitiveInformationType.ToString(), value));
 }