serilog-extensions-logging icon indicating copy to clipboard operation
serilog-extensions-logging copied to clipboard

Support `ValueTuple<string, object>` as state of scope.

Open quabug opened this issue 4 years ago • 2 comments
trafficstars

It would be nice to code like logger.BeginScope(("propertyName", (object)property)) or even better with an extension public static IDisposable BeginScope(this ILogger logger, string name, object value).

quabug avatar Mar 01 '21 07:03 quabug

Definitely a syntactic improvement; the first variant would be the preferred one since consumers of this library don't normally want to depend on additional libraries to add things like the extra BeginScope overload.

Would be great if anyone watching along has the opportunity to explore this further/open a PR for discussion.

nblumhardt avatar Oct 03 '23 04:10 nblumhardt

Can be closed?

sungam3r avatar Mar 25 '24 07:03 sungam3r