You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
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.
It would be nice to code like
logger.BeginScope(("propertyName", (object)property))
or even better with an extensionpublic static IDisposable BeginScope(this ILogger logger, string name, object value)
.The text was updated successfully, but these errors were encountered: