1 year ago
#385815
snilmerg
Serilog - GetRequiredService<ILogger<T>> vs Log.ForContext<T>
What is the difference between
var logger = services.GetRequiredService<ILogger<T>>;
vs
var logger = Log.ForContext<T>();
c#
.net
logging
dependency-injection
serilog
0 Answers
Your Answer