Closed Tolyandre closed 3 years ago
If a custom enricher has a static ctor, configuration throws System.MemberAccessException : Type initializer was not callable.
System.MemberAccessException : Type initializer was not callable.
There is how I discovered such behavior: https://github.com/Tolyandre/serilog-throw-context-enricher/issues/2
To reproduce with a unit test:
Actual behavior: test throws Expected behavior: enricher is instantiated
Thanks for the report 👍
If a custom enricher has a static ctor, configuration throws
System.MemberAccessException : Type initializer was not callable.
There is how I discovered such behavior: https://github.com/Tolyandre/serilog-throw-context-enricher/issues/2
To reproduce with a unit test:
Actual behavior: test throws Expected behavior: enricher is instantiated