Serilog: Attributes to exclude properties from logging

Created on 5 May 2016  路  2Comments  路  Source: serilog/serilog

Is there a way to exclude property with annotation from logging when logging object with {@Object} like [JsonIgnore] for Newtonsoft.Json?

question

Most helpful comment

Hi! Yes, this is [NotLogged] from https://github.com/destructurama/attributed

If you see any opportunities to improve it, feel free to raise suggestions over there :+1: - thanks!

All 2 comments

Hi! Yes, this is [NotLogged] from https://github.com/destructurama/attributed

If you see any opportunities to improve it, feel free to raise suggestions over there :+1: - thanks!

Do you know about a fluent way style of doing it? Something like AutoMapper, FluentValidation?

Was this page helpful?
0 / 5 - 0 ratings