Skip to content

Commit 6e2bdfa

Browse files
Mark WithSensitiveDataMasking methods as obsolete
1 parent 7e80b90 commit 6e2bdfa

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 1.4.0
44

55
- Add support for masking destructured objects
6+
- Marked the `WithSensitiveDataMasking()` methods that take specific parameters as obsolete in favour of the `WithSensitiveDataMasking(options => {})` version
67

78
## 1.3.0
89

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
2+
<s:Boolean x:Key="/Default/UserDictionary/Words/=Enricher/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>

src/Serilog.Enrichers.Sensitive/SensitiveDataEnricher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ internal class SensitiveDataEnricher : ILogEventEnricher
1313
private readonly MaskingMode _maskingMode;
1414
public const string DefaultMaskValue = "***MASKED***";
1515

16-
private static readonly MessageTemplateParser Parser = new MessageTemplateParser();
16+
private static readonly MessageTemplateParser Parser = new();
1717
private readonly FieldInfo _messageTemplateBackingField;
1818
private readonly List<IMaskingOperator> _maskingOperators;
1919
private readonly string _maskValue;

0 commit comments

Comments
 (0)