1

I am about to implement logging in some web apis I am writing.

The default implementation suggests that everywhere I want to use logging I need to inject.

What is wrong with a static logger(serilog)without the need of injecting everywhere.

Am I missing the point?

I did see this thread (before somebody jumps with duplicate)

ASP.NET Core Web API Logging from a Static Class

In the thread above mentioned i dont see how I can integrate with serilog?

As anybody implemented a serilog static logger netcore?

thanks

developer9969
  • 4,628
  • 6
  • 40
  • 88
  • This is just a matter of personal preference. I prefer to use the static logger so that I won't have to inject my loggers everywhere and pollute my constructors... – Rosdi Kasim Nov 26 '18 at 08:01

0 Answers0