Extend the Microsoft.Extensions.Logging API Functionality by Using NLog or Serilog Providers. Both NLog and Serilog both have a provider that you can use to extend the functionality of the built-in logging API. They essentially redirect all of the logs being written to the new logging API to their libraries. It all works fine if I configure Serilog in code: var jsonSink = new RollingFileSink (config ["Logger:FilePath"], new JsonFormatter (), 2147483648, 5); var logger = new Serilog.LoggerConfiguration ().WriteTo.Sink (jsonSink); Here is the relevant section of my project.json:
Not found what you are looking for? Let us know what you'd like to see in the Marketplace! See full list on tutorialsteacher.com