Tag Archives: NLog

.NET Core, ASP.NET Core logging with NLog and PostgreSQL

This article shows how .NET Core or ASP.NET Core applications can log to a PostgreSQL database using NLog. Code: https://github.com/damienbod/AspNetCoreNlog Other posts in this series: ASP.NET Core logging with NLog and Microsoft SQL Server ASP.NET Core logging with NLog and Elasticsearch Settings the NLog database connection string in the ASP.NET Core appsettings.json .NET Core logging […]

.NET Core logging to MySQL using NLog

This article shows how to log to MySQL in a .NET Core application using NLog. Code: https://github.com/damienbod/AspNetCoreNlog NLog posts in this series: ASP.NET Core logging with NLog and Microsoft SQL Server ASP.NET Core logging with NLog and Elasticsearch Settings the NLog database connection string in the ASP.NET Core appsettings.json ASP.NET Core, logging to MySQL using […]

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

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. Code: VS2017 RC3 csproj | VS2015 […]

ASP.NET Core logging with NLog and Elasticsearch

This article shows how to Log to Elasticsearch using NLog in an ASP.NET Core application. NLog is a free open-source logging for .NET. Code: VS2017 RC3 csproj | VS2015 project.json 2017.02.08 Updated to NLog.Web.AspNetCore 4.3.0 and VS2017 RC3 17.12.2016 Updated to ASP.NET Core 1.1 NLog posts in this series: ASP.NET Core logging with NLog and […]

ASP.NET Core logging with NLog and Microsoft SQL Server

This article shows how to setup logging in an ASP.NET Core application which logs to a Microsoft SQL Server using NLog. Code: VS2017 RC3 csproj | VS2015 project.json 2017.02.08 Updated to NLog.Web.AspNetCore 4.3.0 and VS2017 RC3 2016.12.17 Updated to ASP.NET Core 1.1 NLog posts in this series: ASP.NET Core logging with NLog and Microsoft SQL […]