serilog-contrib / SerilogSinksInMemory

In-memory sink for Serilog to use for testing
MIT License
53 stars 7 forks source link

Use from a controller? #36

Open imclint21 opened 1 month ago

imclint21 commented 1 month ago

Hi,

I try to use from a controller but InMemorySink.Instance.LogEvents seems always empty, does I need to configure any DI?

Regards

sandermvanvliet commented 2 weeks ago

Would you be able to share a code sample of how you’re attempting to do this?