destructurama / attributed

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

Add NotLoggedIfNull attribute #49

Closed avtc closed 8 months ago

avtc commented 3 years ago

Add NotLoggedIfNullAttribute and tests

It has effect only on reference types and nullables.

Ignore null properties can be globally applied without applying attributes:

var log = new LoggerConfiguration()
  .Destructure.UsingAttributes(x => x.IgnoreNullProperties = true)

Based on PR: https://github.com/destructurama/attributed/pull/38

avtc commented 3 years ago

Related to #18

sfektsz commented 2 years ago

@sungam3r Any update on this, please?

sungam3r commented 2 years ago

I'm neither an owner of this repo nor have write access to be able to merge PRs.

heman-dookhee-cko commented 2 years ago

@SimonCropp Is it possible to have an update on this, please?

sungam3r commented 1 year ago

@heman-dookhee-cko Thanks for PR. Now I'm a member of destructurama org so please resolve conflicts and I'll review/merge.

avtc commented 8 months ago

@sungam3r conflicts resolved, please review/merge

sungam3r commented 8 months ago

OK, will review soon. I was busy updating other 2 repos in destructurama org.

sungam3r commented 8 months ago

@avtc Thanks. Will be published coming days.

PawelTroka commented 4 months ago

@sungam3r can this be causing a memory leak? we have observed a huge memory usage increase after using this