A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Suchiman/SerilogAnalyzer/issues/28 below:

detect when passing properties of an anonymous type but forgetting the @ destructuring operator · Issue #28 · Suchiman/SerilogAnalyzer · GitHub

Following the advice from https://nblumhardt.com/2016/02/serilog-tip-dont-serialize-arbitrary-objects/ , it's quite a common pattern to use anonymous classes as a property to enrich a log event. In those case, it's important to remember to add the @ destructuring operator in the message template, or else, the ToString() behavior will be used.

It would be good to detect cases where the user has passed a property of an anonymous type, but forgot to add the @ operator. The code fix would be to add the missing operator in the template.

Suchiman, nblumhardt and normanhh3


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4