destructurama / attributed

Use attributes to control how complex types are logged to Serilog.
Apache License 2.0
269 stars 33 forks source link

LogMasked PreserveLength ignored when both ShowLast and ShowFirst specified #34

Closed alexandr-osprey closed 3 years ago

alexandr-osprey commented 5 years ago

Initial data

1234567891234567891

[LogMasked(PreserveLength = true,  ShowLast = 4)]

***7891

[LogMasked(PreserveLength = true,  ShowLast = 4, ShowFirst = 6)]

123456***7891

Expected result

123456*****7891

Judjing by the source code the attribute is simply ignored in this case. Destructurama.Attributed, Version=2.0.0.0

SimonCropp commented 3 years ago

this has now been deployed