Setting the NLog database connection string in the ASP.NET Core appsettings.json

added by DotNetKicks
9/22/2016 7:59:16 PM

2 Kicks, 598 Views

This article shows how the NLog connection string for the DatabaseTarget can be configured in the appsettings.json in an ASP.NET Core project and not the XML nlog.config file. All the NLog target properties can be configured in code if required and not just in the NLog XML configuration file.