Skip to content

Conversation

@avtc
Copy link
Contributor

@avtc avtc commented Dec 17, 2020

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: #38

ydemetriades and others added 6 commits March 24, 2020 23:02
Add:
- NotLoggedIfDefaultAttribute
- Unit Tests
PR description suggestion

Co-Authored-By: Ivan Maximov <sungam3r@yandex.ru>
- Add Type to IPropertyDestructuringAttribute.TryCreateLogEventProperty
- Change all IPropertyDestructuringAttribute implementations to include type
- Change NotLoggedIfDefaultAttribute (Include cache)
- Write Unit Tests
Ignore null properties can be globally applied without applying attributes:
`Destructurama.Attributed.AttributedDestructuringPolicy.IgnoreNullProperties = true;`
@avtc
Copy link
Contributor Author

avtc commented Dec 28, 2020

Related to #18

@sfektsz
Copy link

sfektsz commented Nov 1, 2021

@sungam3r Any update on this, please?

@sungam3r
Copy link
Member

sungam3r commented Nov 1, 2021

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

@heman-dookhee-cko
Copy link

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

@sungam3r
Copy link
Member

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

@sungam3r sungam3r added the enhancement New feature or request label Jul 14, 2023
avtc added 3 commits January 11, 2024 12:34
# Conflicts:
#	README.md
#	src/Destructurama.Attributed/Attributed/AttributedDestructuringPolicy.cs
#	src/Destructurama.Attributed/Attributed/LogMaskedAttribute.cs
#	src/Destructurama.Attributed/LoggerConfigurationAttributedExtensions.cs
#	test/Destructurama.Attributed.Tests/MaskedAttributeTests.cs
@avtc
Copy link
Contributor Author

avtc commented Jan 11, 2024

@sungam3r conflicts resolved, please review/merge

@sungam3r
Copy link
Member

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

@sungam3r
Copy link
Member

@avtc Thanks. Will be published coming days.

@sungam3r sungam3r merged commit cb13e4b into destructurama:dev Jan 21, 2024
@PawelTroka
Copy link

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

@sungam3r
Copy link
Member

Please open issue if so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants