Tolyandre / serilog-throw-context-enricher

Captures LogContext of a thrown exception in order to enrich the subsequent exception logs with the origin context
MIT License
41 stars 2 forks source link

Simplify exceptionContexts creation #5

Closed arphox closed 1 year ago

arphox commented 1 year ago

GetOrCreateValue does exactly what the GetValue does in this case — invokes the parameterless constructor of the class that represents the table's value.

Tolyandre commented 1 year ago

Hi, @arphox, thanks for the contribution.

I will merge this without producing updated nuget package as it is readability improvement (and because no automation). Let me know if you need updated package.

Thank you!