For exmple, I have function doSomething(string a, string b, string c). And I want to log function executing. I want do something like this:
Logger.Debug("Method doSomething executed", a, b, c)
to avoid writing parameters in message beacause strings can be very long. This functionality is similar to the .Enrich.WithProperty("PropertyName", Value).
But i can't do this in Logger constructor.
Logs writes to SEQ.
ForContext()can do this:All events logged through
enrichedwill have the propertiesA,BandCattached.