How to switch between ASP.NET 4.5 and ASP.NET Core?

258 Views Asked by At

I want to implement logger (say log4net) into ASP.Net 5 and MVC 6 Web application, right now log4net doesn't supported for DNX core, therefore I want it to implement in DNX 4.5 (full .net framework) and later on switch into DNX core when log4net is available for DNX core. Does it feasible ? or is there any other option to implement logger which have file and database logging and should also has DNX 5.0 core support.

1

There are 1 best solutions below

5
On

You should try Serilog framework. It uses semantic logging and have many adapters (sinks). It also got pre-release version with dnxCore support