Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
.Enrich.WithProperty("PropertyName", () => ValueThatConstantlyUpdates); #829
See the example the code below:
The config here will be a lot cleaner if you use:
I can see how a delegate version of
The idea of turning on/off enrichers based on level is a really interesting one, I need to give it a bit more thought, thanks!
Alright, sweet I'll take a look into doing proper implementations of
Yeah, that's the thing. I'm not actually using Serilog/Seq for "text based logging" in the traditional sense, it is more of an eventstore and there are lots of events I wish to always be sent back up server side but ultimately the level of detail or what properties are attached to the event is what matters in this type of setup. Example "When verbose mode is on, send back the entire client side viewmodel and the httpresponsecontent that was used to construct that viewmodel"