How can I configure NLog in .NET Core with appsettings.json instead of an nlog.config file?
问题 The NLog documentation explains how to configure NLog for .NET Core applications by using an nlog.config XML file. However, I'd prefer to have just one configuration file for my application - appsettings.json . For .NET Framework apps, it's possible to put the NLog configuration in app.config or web.config . Is it possible to put the NLog config in appsettings.json in the same way? For example, how could I put this configuration example from the NLog documentation for ASP.NET Core 2 into