Structured logging in C# with Serilog and dependency injection with ILogger<T>
Structured logging is the modern way of logging. To put it simply, instead of traditional log with log messages only, structured logs contain extra information for context. To give you an example, a traditional log may look like this: while the structured version may look like this: Structured logging is good because you can enrich […]